Skip to content

Instantly share code, notes, and snippets.

@publicarray
Last active January 3, 2018 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save publicarray/1526989b8f256505d5fa51e232099702 to your computer and use it in GitHub Desktop.
Save publicarray/1526989b8f256505d5fa51e232099702 to your computer and use it in GitHub Desktop.
Install my development environment on a fresh mac
#!/usr/bin/env bash
#
# Execute the file:
# bash <(curl -fsSL https://seby.io/myfish)
#
set -e
set -v
echo "If you don't know what this script does, hit CTRL-C NOW!"
read -p "Do you want to continue? [Y/y] " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
exit 1
fi
xcode-select --install
sleep 1
osascript <<EOD
tell application "System Events"
tell process "Install Command Line Developer Tools"
keystroke return
click button "Agree" of window "License Agreement"
end tell
end tell
EOD
until xcode-select --print-path &> /dev/null; do
sleep 5
done
HOMEBREW_NO_ANALYTICS=1
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" </dev/null
brew install fish
which fish | sudo tee -a /etc/shells
chsh -s /usr/local/bin/fish
curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs git.io/fisher
brew install z thefuck mas archey tree grep ack unar cmake iproute2mac gnutls git nano
brew install make --with-default-names
gem install bundler
brew cask install sublime-text
fish <<EOF
fisher publicarray/my-fish
#my-fish
fish_update_completions
set -Ux HOMEBREW_NO_ANALYTICS 1
set -U fish_color_normal normal # the default color
set -U fish_color_command green # the color for commands
set -U fish_color_quote yellow # the color for quoted blocks of text
set -U fish_color_redirection normal # the color for IO redirections (|><)
set -U fish_color_end normal # the color for process separators like ';' and '&'
set -U fish_color_error red --bold # the color used to highlight potential errors
set -U fish_color_param normal # the color for regular command parameters
set -U fish_color_comment 555 # the color used for code comments
set -U fish_color_match purple --background=303030 # the color used to highlight matching parenthesis
set -U fish_color_search_match --background=0A0682 # the color used to highlight history search matches
set -U fish_color_operator normal # the color for parameter expansion operators like '*' and '~'
set -U fish_color_escape cyan # the color used to highlight character escapes like '\n' and '\x70'
set -U fish_color_cwd blue # the color used for the current working directory in the default prompt
set -U fish_color_cwd_root red
set -U fish_color_autosuggestion 555 # the color used for autosuggestions
set -U fish_color_user brgreen # the color used to print the current username in some of fish default prompts
set -U fish_color_host normal # the color used to print the current host system in some of fish default prompts
set -U fish_color_valid_path --underline
set -U fish_pager_color_prefix red # the color of the prefix string, i.e. the string that is to be completed
set -U fish_pager_color_completion normal # the color of the completion itself
set -U fish_pager_color_description 777 yellow # the color of the completion description
set -U fish_pager_color_progress cyan # the color of the progress bar at the bottom left corner
set -U fish_pager_color_secondary cyan # the background color of the every second completion
# colors for Man Pages
set -Ux LESS_TERMCAP_mb \e'[01;31m' # begin blinking
set -Ux LESS_TERMCAP_md \e'[01;31m' # begin bold
set -Ux LESS_TERMCAP_me \e'[0m' # end mode
set -Ux LESS_TERMCAP_se \e'[0m' # end standout-mode
set -Ux LESS_TERMCAP_so \e'[01;44;33m' # begin standout-mode - info box
set -Ux LESS_TERMCAP_ue \e'[0m' # end underline
set -Ux LESS_TERMCAP_us \e'[01;32m' # begin underline
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment