Parcourir la Source

~/.zshrc: Use bold for failed/aborted commands.

It still has that weird bug where part of the command is repeated in
front of the actual command.

Any pointers welcome. Pointers will get a grateful email or something.
Or commit dedicated to them.
luc 12 ans auparavant
Parent
commit
444c09d039
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      .zshrc

+ 1 - 1
.zshrc

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