ZSHRC
Features
- time, path, git info (branch with dirty/clean status), last exitcode
- improved prompt visibility including bold command text
- enhanced tab completion including within git
- change directories without having to type 'cd'
- working home/end keys (macos)
- choice of color schemes
Usage
Copy .zshrc
and .zshprompt
to your home dir, then tweak your terminal client settings as per below.
Iterm2
Iterm2 needs a couple tweaks:
- enable Powerline glyphs (Preferences > Profiles > Default > Text > Use built-in Powerline glyphs)
- import and apply provided
xterm.itermcolors
file for proper xterm256 colors (Preferences > Profiles > Default > Colors > Color Presets)
Apple Terminal
Terminal requires installation and use of a font with Powerline glyphs, see:
- https://github.com/supermarin/powerline-fonts
- https://gist.github.com/lujiacn/32b598b1a6a43c996cbd93d42d466466
Home/End keys
Different platforms need different keycodes mapped; if these keys don't work out-of-the-box, try the included alternate mappings.
Color Schemes
Adjust SCHEME
variable in .zshprompt
.