Skip to content

Instantly share code, notes, and snippets.

@josh-works
Last active September 3, 2018 20:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josh-works/22b3cd2f4cc4abc9458f50c4b47565e2 to your computer and use it in GitHub Desktop.
Save josh-works/22b3cd2f4cc4abc9458f50c4b47565e2 to your computer and use it in GitHub Desktop.

Follow these instructions to start using Zsh:

https://github.com/robbyrussell/oh-my-zsh

I'm using the Agnoster theme:

https://github.com/agnoster/agnoster-zsh-theme

You'll have to install the Patched Solarized Fonts:

https://github.com/powerline/fonts

Change iTerm to use the new fonts:

iTerm2 users need to set both the Regular font and the Non-ASCII Font in "iTerm > Preferences > Text" to use a patched font

I have it show only the last two directories from wherever PWD is (instead of the whole path from ~), so, in line 189 of the theme, change

prompt_segment blue black to use:

prompt_dir() {
  prompt_segment blue black '%2~'
}

ZSH has a lot of other oddities, including making it play well with .bashrc to pick up old aliases, etc, but I've been using it for a few months and really like it.

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