zshrc: Move hex to skel/.zshrc
authorFrank Terbeck <ft@bewatermyfriend.org>
Tue, 29 Nov 2011 13:48:42 +0000 (14:48 +0100)
committerMichael Prokop <mika@grml.org>
Tue, 6 Dec 2011 13:50:47 +0000 (14:50 +0100)
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
doc/grmlzshrc.t2t
etc/skel/.zshrc
etc/zsh/zshrc

index 3792c17..78a2ab6 100644 (file)
@@ -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.
 
index 3b861b8..8e1b025 100644 (file)
@@ -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 <number-to-convert>'
+#        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
index 933f7ab..b7b2caf 100644 (file)
@@ -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 <number-to-convert>' ; return 1 }
-}
-
 # spawn a minimally set up mksh - useful if you want to umount /usr/.
 minimal-shell() {
     emulate -L zsh