]> git.mjollnir.org Git - dotfiles/zsh.git/commitdiff
added history locking setting master
authorPenny Leach <penny@mjollnir.org>
Tue, 1 May 2012 10:58:30 +0000 (12:58 +0200)
committerPenny Leach <penny@mjollnir.org>
Tue, 1 May 2012 10:58:30 +0000 (12:58 +0200)
.zsh.d/S03_prompt
.zshrc

index 472da54e701e42ea0160ac1bf3dc6fd6c43b53aa..cf3abe32df2db443988501c74278e42a725815f9 100644 (file)
@@ -17,6 +17,8 @@ precmd() {
   [[ -n $vcs_info_msg_0_ ]] && psvar[1]="$vcs_info_msg_0_"
 }
 
-[[ "${PS1:-}" = '%m%# ' ]] && PS1="%m:%(1v.%F{red}%1v%f:.)$PSEXTRA%~%# "
+PS1="%m:%(1v.%F{red}%1v%f:.)%~%# "
+
+: ${RPS1:="#%(0?..%?,)%!"}
 
 # vim:ft=zsh
diff --git a/.zshrc b/.zshrc
index 4ff379de9ed39052bfcbbc1e99d9eb8471549263..bce703e347be16465f0d3c09584f55cb5747a606 100644 (file)
--- a/.zshrc
+++ b/.zshrc
@@ -12,7 +12,7 @@ compinit
 HISTFILE=~/.histfile
 HISTSIZE=1000
 SAVEHIST=1000
-setopt appendhistory extendedglob nomatch notify
+setopt appendhistory extendedglob nomatch notify hist_fcntl_lock
 bindkey -e
 
 # End of lines configured by zsh-newuser-install