From d14cbca661dff41ed1e0622c3e934ad0897c0ae3 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Wed, 29 Jun 2011 22:46:17 -0700 Subject: [PATCH] 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 --- zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zshrc b/zshrc index 9567bed..3b2e1cb 100644 --- a/zshrc +++ b/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'