Restore zsh config

This commit is contained in:
Tom Willemse 2014-08-21 00:14:54 +02:00
parent 98b55322b4
commit e53667c7ee
24 changed files with 9 additions and 5 deletions

View file

@ -30,6 +30,7 @@ alias grep="grep --color=always"
alias ls="ls -F --color=always" alias ls="ls -F --color=always"
alias mysql="mysql --pager" alias mysql="mysql --pager"
alias sbcl="rlwrap sbcl" alias sbcl="rlwrap sbcl"
alias scrot="/usr/bin/scrot -e 'mv \$f ~/pictures/screenshots/'"
# Suffix aliases # Suffix aliases
alias -s pdf="zathura" alias -s pdf="zathura"
@ -51,15 +52,18 @@ typeset -ga chpwd_functions
add-zsh-hook precmd vcs_info add-zsh-hook precmd vcs_info
zstyle ':vcs_info:*' actionformats '%B%F{1}%a%f%%b (%F{3}%s%f) %F{5}%r%f:%F{4}%b%f %F{2}%S%f' zstyle ':vcs_info:*' actionformats '%u%c %B%F{1}%a%f%%b (%F{3}%s%f) %F{5}%r%f:%F{4}%b%f %F{2}%S%f'
zstyle ':vcs_info:*' enable bzr git hg svn zstyle ':vcs_info:*' enable bzr git hg svn
zstyle ':vcs_info:*' formats '(%F{3}%s%f) %F{5}%r%f:%F{4}%b%f %F{2}%S%f' zstyle ':vcs_info:*' formats '%u%c (%F{3}%s%f) %F{5}%r%f:%F{4}%b%f %F{2}%S%f'
zstyle ':vcs_info:*' nvcsformats '%F{2}%~%f' zstyle ':vcs_info:*' nvcsformats '%F{2}%~%f'
zstyle ':vcs_info:bzr:*' branchformat '%b' zstyle ':vcs_info:bzr:*' branchformat '%b'
zstyle ':vcs_info:git:*' check-for-changes 1
zstyle ':vcs_info:*' stagedstr '%F{2}Δ%f'
zstyle ':vcs_info:*' unstagedstr '%F{1}Δ%f'
# Set the prompt. # Set the prompt.
PROMPT='${vcs_info_msg_0_} PROMPT='${vcs_info_msg_0_}
%B%F{6}%m%b%f %B%(?.%F{2}+.%F{1}-)%b> ' %B%(?.%F{2}.%F{1})%b '
# Set terminal name to current running application # Set terminal name to current running application
case $TERM in case $TERM in
@ -69,8 +73,8 @@ case $TERM in
precmd () { print -P "\eAnSiTu %n\n\eAnSiTc %~" } precmd () { print -P "\eAnSiTu %n\n\eAnSiTc %~" }
;; ;;
rxvt*) rxvt*)
precmd () { print -Pn "\e]0;%~\a" } precmd () { print -Pn "\e]0;%m: %~\a" }
preexec () { print -Pn "\e]0;$1\a" } preexec () { print -Pn "\e]0;%m: $1\a" }
;; ;;
screen) screen)
# Make screen show the current running command as window title # Make screen show the current running command as window title