Created
June 14, 2012 20:52
-
-
Save jcalvert/2932875 to your computer and use it in GitHub Desktop.
zsh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ssh_connection() { | |
if [[ -n $SSH_CONNECTION ]]; then | |
echo "%{$fg_bold[red]%}(ssh) " | |
fi | |
} | |
PROMPT=$'\n$(ssh_connection)%{$fg_bold[green]%}%n@%m%{$reset_color%}:%{$fg_bold[blue]%}%2/%{$reset_color%}:$ ' | |
ZSH_THEME_PROMPT_RETURNCODE_PREFIX="%{$fg_bold[red]%}" | |
ZSH_THEME_GIT_PROMPT_PREFIX=" $fg[white]‹ %{$fg_bold[yellow]%}" | |
ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg_bold[magenta]%}↑" | |
ZSH_THEME_GIT_PROMPT_STAGED="%{$fg_bold[green]%}●" | |
ZSH_THEME_GIT_PROMPT_UNSTAGED="%{$fg_bold[red]%}●" | |
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg_bold[white]%}●" | |
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg_bold[red]%}✕" | |
ZSH_THEME_GIT_PROMPT_SUFFIX=" $fg_bold[white]›%{$reset_color%}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment