Skip to content

Instantly share code, notes, and snippets.

@josh-works

josh-works/zsh_setup.md

Last active Sep 3, 2018
Embed
What would you like to do?

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