From fe25fa0be72344bacd156cf0da78784d3aadcf4a Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Tue, 29 Nov 2011 14:48:42 +0100 Subject: [PATCH] zshrc: Move hex to skel/.zshrc Signed-off-by: Frank Terbeck --- doc/grmlzshrc.t2t | 4 ---- etc/skel/.zshrc | 11 +++++++++++ etc/zsh/zshrc | 6 ------ 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/doc/grmlzshrc.t2t b/doc/grmlzshrc.t2t index 3792c17..78a2ab6 100644 --- a/doc/grmlzshrc.t2t +++ b/doc/grmlzshrc.t2t @@ -529,10 +529,6 @@ Reloads an autoloadable shell function (See autoload in zshbuiltins(1)). : **get_tw_cli()** Fetches 3ware RAID controller software using get_3ware(1). -: **hex()** -Prints the hexadecimal representation of the number supplied as argument -(base ten only). - : **hgdi()** Use GNU diff with options -ubwd for mercurial. diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index 3b861b8..8e1b025 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -252,6 +252,17 @@ fi # END { print "p" }' | dc #} +## print hex value of a number +#hex() { +# emulate -L zsh +# if [[ -n "$1" ]]; then +# printf "%x\n" $1 +# else +# print 'Usage: hex ' +# return 1 +# fi +#} + ## log out? set timeout in seconds... ## ...and do not log out in some specific terminals: #if [[ "${TERM}" == ([Exa]term*|rxvt|dtterm|screen*) ]] ; then diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 933f7ab..b7b2caf 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2212,12 +2212,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 -- 2.1.4