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