|
|
|
|
|
|
35
|
user="%{$fg[red]%}%n%{$reset_color%}"
|
35
|
user="%{$fg[red]%}%n%{$reset_color%}"
|
|
36
|
dir="%{$fg[cyan]%}%~%{$reset_color%}"
|
36
|
dir="%{$fg[cyan]%}%~%{$reset_color%}"
|
|
37
|
lastcmd="$history[$(($HISTCMD-1))]"
|
37
|
lastcmd="$history[$(($HISTCMD-1))]"
|
|
38
|
lastcmd_witherror="%(?.$lastcmd.%B$lastcmd%b)"
|
|
|
|
|
|
38
|
lastcmd_witherror="%(?!$lastcmd!%B$lastcmd%b)"
|
|
39
|
PROMPT="$user in $dir@$(repo_branch) $lastcmd_witherror
|
39
|
PROMPT="$user in $dir@$(repo_branch) $lastcmd_witherror
|
|
40
|
$(repo_char) $ "
|
40
|
$(repo_char) $ "
|
|
41
|
RPROMPT="%D{%Y-%m-%d} %{$fg[red]%}%t%{$reset_color%}"
|
41
|
RPROMPT="%D{%Y-%m-%d} %{$fg[red]%}%t%{$reset_color%}"
|