A couple changes to the ZSH config
- Add a timestamp to the prompt with %* and show the history number in red if the command failed - Store a million history entries in the history file
This commit is contained in:
parent
959f25c1de
commit
d14cbca661
1 changed files with 3 additions and 3 deletions
6
zshrc
6
zshrc
|
@ -29,7 +29,7 @@ else
|
|||
#mytime="%T"
|
||||
fi
|
||||
|
||||
PROMPT=" %h %(!.%B%F{red}.)%3~ %#%(!.%F{default}%b.) "
|
||||
PROMPT=" %(?.%h.%B%F{red}%h%F{default}%b) %* %(!.%B%F{red}.)%3~ %#%(!.%F{default}%b.) "
|
||||
RPROMPT="%m"
|
||||
|
||||
precmd ()
|
||||
|
@ -68,8 +68,8 @@ setopt \
|
|||
HIST_IGNORE_DUPS \
|
||||
HIST_REDUCE_BLANKS
|
||||
|
||||
HISTSIZE=10000
|
||||
SAVEHIST=200
|
||||
HISTSIZE=1000000
|
||||
SAVEHIST=1000000
|
||||
HISTFILE="$HOME/.zhistory"
|
||||
|
||||
#[ -n "$DISPLAY" ] && alias -s pdf='evince'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue