Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
: **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.
# 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
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