Просмотр исходного кода

~/.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
Родитель
Сommit
444c09d039
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      .zshrc

+ 1 - 1
.zshrc

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%}"