Преглед на файлове

~/.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 години
родител
ревизия
444c09d039
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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%}"