This commit is contained in:
Ole Morten Halvorsen 2017-05-02 02:22:10 +00:00 committed by GitHub
commit 369466f96d

18
themes/omh.zsh-theme Normal file
View file

@ -0,0 +1,18 @@
function ssh_connection() {
if [[ -n $SSH_CONNECTION ]]; then
echo "%{$fg_bold[red]%}(ssh %n@%m) "
fi
}
PROMPT='$(ssh_connection)\
%{$FG[238]%}%3~ \
$(git_prompt_info)\
%{$fg[green]%}%(!.#.)\
%{$reset_color%} '
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$FG[237]%}(%{$FG[104]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$FG[237]%}) %{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_GIT_PROMPT_DIRTY="%{$FG[214]%} ✹%{$reset_color%}"