dotfiles/zsh/joshtronic.zsh-theme
Josh Sherman 945a1365c7 [zsh] adds rvm, alias and shebangs
OS X is stupid and ships with a way old version of Ruby. RVM is the only
solution but it slows the prompt down considerably so I made it OS X
only. Added an alias for tmuxinator as the brew installed version
doesn't alias to mux out of the box. Added shebangs to files to they are
properly syntax highlighted.
2016-11-20 11:02:09 -06:00

23 lines
510 B
Bash

#!/bin/zsh
function username() {
if [[ `whoami` != 'josh' ]]; then
echo %{$FG[248]%}%n
fi
}
function server() {
if [[ `hostname` != josh-* ]]; then
echo "%{$FG[244]%}@%{$fg[magenta]%}%m "
fi
}
PROMPT_USER="$(username)$(server)"
PROMPT='
%{$PROMPT_USER%}%{$fg[blue]%}%~ $(git_prompt_info)
%{$FG[244]%}%# %{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN=""