-
install terminal of choice
- iTerm2: https://www.iterm2.com/
- Hyper: https://hyper.is/
-
install git
- download from https://git-scm.com/
-
install homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- info: https://brew.sh/
-
install tree
brew install tree
-
install zsh (included with mac) and oh-my-zsh: https://github.com/robbyrussell/oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
-
install fish: https://fishshell.com/
brew install fish
-
thefuck: https://github.com/nvbn/thefuck
brew install thefuck
- zsh: put
eval "$(thefuck --alias)"
in .zshrc - fish: put
thefuck --alias | source
in your ~/.config/fish/config.fish
-
install powerline shell: https://github.com/b-ryan/powerline-shell
- first, need pip, if missing. OSX info: https://stackoverflow.com/questions/17271319/how-do-i-install-pip-on-macos-or-os-x
sudo easy_install pip
sudo pip install powerline-shell
- add powerline info to configs: https://github.com/b-ryan/powerline-shell#zsh
- first, need pip, if missing. OSX info: https://stackoverflow.com/questions/17271319/how-do-i-install-pip-on-macos-or-os-x
-
config powerline-shell: https://gist.github.com/lovemecomputer/ddf3297882968993416c6961794c41ca
-
ruby env
- need a ruby env set up so we can have proper access privileges to install gems
- rbenv setup via: https://github.com/rbenv/rbenv
brew install rbenv
rbenv init
- to verify:
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash
- zsh: add
eval "$(rbenv init -)"
to .zshrc - fish:
- then install ruby version:
rbenv install -l
to check available versions to installrbenv install 2.5.1
- this often doesn't work for me, but this did: https://stackoverflow.com/questions/39381360/how-do-i-install-ruby-gems-on-mac
brew install rbenv ruby-build
# bash
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
# zsh
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zprofile
echo 'eval "$(rbenv init -)"' >> ~/.zprofile
# list all available versions:
rbenv install -l
# install a Ruby version:
rbenv install 2.4.1
# set ruby version for a specific dir
rbenv local 2.4.1
# set ruby version globally
rbenv global 2.4.1
rbenv rehash
gem update --system
-
lolcat
- installing the lolcat gem needs a ruby environment
- gem install lolcat
-
config shell
- fish config below
-
rainbow greeting: