zshrc: Move hex to skel/.zshrc
[grml-etc-core.git] / etc / skel / .zshrc
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