X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=d07e9b025eef66f2463695fc97ae9b917fccc42b;hb=a5d4d9967bd7b0e8065becfed24e4b4abd3c88c8;hp=933f7ab303fc6f5da0b843c8cdc93468e0e8a059;hpb=2e9ff8e5185eb3c4305368cf9e1fd14de2ed8f15;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 933f7ab..d07e9b0 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1897,15 +1897,6 @@ sll() { done } -# fast manual access -if check_com qma ; then - #f1# View the zsh manual - manzsh() { qma zshall "$1" } - compdef _man qma -else - manzsh() { /usr/bin/man zshall | vim -c "se ft=man| se hlsearch" +/"$1" - ; } -fi - # TODO: Is it supported to use pager settings like this? # PAGER='less -Mr' - If so, the use of $PAGER here needs fixing # with respect to wordsplitting. (ie. ${=PAGER}) @@ -2188,8 +2179,6 @@ help-zle() #k# display help for keybindings and ZLE (cycle pages with consecutive use) zle -N help-zle && bindkey '^Xz' help-zle -check_com -c qma && alias ?='qma zshall' - # grep for running process, like: 'any vim' any() { emulate -L zsh @@ -2212,12 +2201,6 @@ deswap() { print 'Finished, running "swapoff -a; swapon -a" may also be useful.' } -# print hex value of a number -hex() { - emulate -L zsh - [[ -n "$1" ]] && printf "%x\n" $1 || { print 'Usage: hex ' ; return 1 } -} - # spawn a minimally set up mksh - useful if you want to umount /usr/. minimal-shell() { emulate -L zsh