|
|
|
|
|
|
37
|
dir="%{$fg[cyan]%}%~%{$reset_color%}"
|
37
|
dir="%{$fg[cyan]%}%~%{$reset_color%}"
|
|
38
|
lastcmd="$history[$(($HISTCMD-1))]"
|
38
|
lastcmd="$history[$(($HISTCMD-1))]"
|
|
39
|
lastcmd_witherror="%(?!$lastcmd!%B$lastcmd%b)"
|
39
|
lastcmd_witherror="%(?!$lastcmd!%B$lastcmd%b)"
|
|
40
|
PROMPT="$user in $dir@$(repo_branch) $lastcmd_witherror
|
|
|
|
|
|
40
|
if [ -n "$SSH_CONNECTION" ]; then
|
|
|
|
41
|
server="@`echo $SSH_CONNECTION | cut -d' ' -f3`"
|
|
|
|
42
|
fi
|
|
|
|
43
|
PROMPT="$user$server in $dir@$(repo_branch) $lastcmd_witherror
|
|
41
|
$(repo_char) $ "
|
44
|
$(repo_char) $ "
|
|
42
|
RPROMPT="%D{%Y-%m-%d} %{$fg[red]%}%t%{$reset_color%}"
|
45
|
RPROMPT="%D{%Y-%m-%d} %{$fg[red]%}%t%{$reset_color%}"
|
|
43
|
}
|
46
|
}
|