X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=62ff84cc0b686a4e7d1b7f04d6ffa3b51332457b;hb=5e5508b81a90307b65ba47898c7022e1bfb21973;hp=ef4b3a91e6fa8f47d2c6bf1701e01d9dac10885e;hpb=15383cbd49486d38a233e79ab20aea23db81f359;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index ef4b3a9..62ff84c 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -860,7 +860,7 @@ abk=( 'co' './configure && make && sudo make install' ) -globalias() { +zleiab() { emulate -L zsh setopt extendedglob local MATCH @@ -875,8 +875,8 @@ globalias() { LBUFFER+=${abk[$MATCH]:-$MATCH} } -zle -N globalias -bindkey ",." globalias +zle -N zleiab +bindkey ",." zleiab # autoloading zrcautoload zmv # who needs mmv or rename? @@ -2304,10 +2304,6 @@ alias md='mkdir -p' alias rmcdir='cd ..; rmdir $OLDPWD || cd $OLDPWD' # console stuff -#a2# Execute \kbd{mplayer -vo fbdev} -alias cmplayer='mplayer -vo fbdev' -#a2# Execute \kbd{mplayer -vo fbdev -fs -zoom} -alias fbmplayer='mplayer -vo fbdev -fs -zoom' #a2# Execute \kbd{links2 -driver fb} alias fblinks='links2 -driver fb' @@ -2365,9 +2361,10 @@ cd() { } #f5# Create Directoy and \kbd{cd} to it -mcd() { +mkcd() { mkdir -p "$@" && cd "$@" } + #f5# Create temporary directory and \kbd{cd} to it cdt() { local t @@ -2433,8 +2430,6 @@ check_com new || alias new=modified # use colors when GNU grep with color-support #a2# Execute \kbd{grep -{}-color=auto} (grep --help 2>/dev/null |grep -- --color) >/dev/null && alias grep='grep --color=auto' -#a2# Execute \kbd{grep -i -{}-color=auto} -alias GREP='grep -i --color=auto' # Translate DE<=>EN # 'translate' looks up fot a word in a file with language-to-language @@ -2677,11 +2672,6 @@ allulimit() { ulimit -t unlimited } -# highlight important stuff in diff output, usage example: hg diff | hidiff -#m# a2 hidiff \kbd{histring} oneliner for diffs -check_com -c histring && \ - alias hidiff="histring -fE '^Comparing files .*|^diff .*' | histring -c yellow -fE '^\-.*' | histring -c green -fE '^\+.*'" - #f5# Change the xterm title from within GNU-screen xtrename() { emulate -L zsh