Skip to content

Instantly share code, notes, and snippets.

@eriktelepovsky
Last active February 15, 2019 13:37
Show Gist options
  • Save eriktelepovsky/c1d63fe4e6d5f79813dd to your computer and use it in GitHub Desktop.
Save eriktelepovsky/c1d63fe4e6d5f79813dd to your computer and use it in GitHub Desktop.
https://medium.freecodecamp.org/how-you-can-style-your-terminal-like-medium-freecodecamp-or-any-way-you-want-f499234d48bc
@eriktelepovsky
Copy link
Author

eriktelepovsky commented Feb 15, 2019

iTerm2, zsh shell, PowerLevel9k theme

  1. Install the terminal iTerm2 here or through homebrew using brew cask install iterm2
  2. Then install the shell Zsh (a alternative to bash) using brew install zsh
  3. Change the default shell to Zsh rather than bash, run the change shell command in your terminal: chsh -s /bin/zsh
  4. Download freeCodeCamp powerlevel9k theme: wget https://raw.githubusercontent.com/ryanwhocodes/powerlevel9k-freeCodeCamp/master/freeCodeCamp.itermcolors
  5. Download Nerd Fonts: brew tap caskroom/fonts; brew cask install font-hack-nerd-font
  6. open iTerm2: open /Applications/iTerm2.app
  7. set a colour scheme: iTerm -> Preferences -> Profiles -> Colors -> Color Presets -> Import
  8. Configure iTerm2 with Nerd Fonts: iTerm2 -> Preferences -> Profiles -> Text -> Font -> Change Font
  9. Also check the box for Use a different font for non-ASCII text and select the font again.
  10. install the Powerleve9k: git clone https://github.com/bhilburn/powerlevel9k.git ~/powerlevel9k
  11. load powerlevel9k when Zsh starts: echo 'source ~/powerlevel9k/powerlevel9k.zsh-theme' >> ~/.zshrc
  12. You need to tell Powerlevel9k to use the Nerd Fonts in your ~/.zshrc: echo "POWERLEVEL9K_MODE='nerdfont-complete'" >> ~/.zshrc
  13. Configure prompt elements and layout and create custom prompt segments: check my .zshrc gist

Colorls

  1. check ruby version: ruby --version
  2. update ruby to version >= 2.4.0:
\curl -sSL https://get.rvm.io | bash -s stable
rvm list known
rvm install ruby-2.x.y
ruby -v
rvm use ruby-2.x.y --default
  1. install colorls command: gem install colorls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment