Gibheers zsh-config

Da jemand nach teilen meiner zsh-config gefragt hatte, stelle ich sie hier einfach mal komplett vor bzw. zum download bereit.

Mit “bild hoch” und runter kann man einen Befehl anhand der Eingabe wieder raussuchen, mit pos1 und ende in der Zeile an den Anfang oder das Ende springen. Auch backspace funktioniert, wie man es erwartet :D

Wenn ihr Teile daraus gebrauchen koennt, dann viel Spass damit. (config ist im weiteren Anhang des Eintrages)

source:sh
source ~/.profile

autoload ~~Uz compinit
autoload colors ; colors
autoload zmv
compinit
HISTFILE=~/.histfile
HISTSIZE=2000
SAVEHIST=2000
setopt appendhistory nomatch
unsetopt autocd beep extendedglob notify
alias su=‘su
alias ls=’ls
G’
alias nano=‘nano w’
alias log=’hg log
l 3’
alias status=‘hg status’
alias dir_to_lower=“zmv~~Qv ‘(**/)(*)(.D)’ ‘\$1\${(L)2}’”

PS1=“\$(print ‘{\e[1;31m%} ~ {\e[0m%}’)”
RPS1=“\$(print ‘{\e[0m%}’)”

bindkey -v ‘^[[3~’\\ delete-char
bindkey\\ -v\\ ’\^[[4~’\ end-of-line
bindkey\ v\ ’^[OF’\\ end-of-line
bindkey\\ -v\\ ’^[[1~’\\ beginning-of-line
bindkey\\ -v\\ ’^[OH’\\\ beginning-of-line
bindkey\\\ -v\\\ ’^[[5~’\ history-beginning-search-backward
bindkey
v\ ’^[[6~’ history-beginning-search-forward