X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=7ad7ad9478e4f4968af21507aa94110e6525e85a;hb=b7ebc8162d5d8d4cbb9bd3a17e63d531e0f09548;hp=894eb886654911115aa14a285def90164f32b114;hpb=500599cffc63fdd98aaf4bf8c67d627e23961785;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 894eb88..7ad7ad9 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? @@ -2434,8 +2434,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 @@ -2678,11 +2676,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