# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
-# Latest change: Sam Mär 17 20:12:26 CET 2007 [mika]
+# Latest change: Sam Apr 14 11:01:58 CEST 2007 [mika]
################################################################################
# This file is sourced only for interactive shells. It
# should contain commands to set up aliases, functions,
fi
fi
+# get_tw_cli has been renamed into get_3ware
+ if [ -x /usr/bin/get_3ware ] ; then
+ get_tw_cli() {
+ echo 'Warning: get_tw_cli has been renamed into get_3ware. Invoking get_3ware for you.'>&2
+ get_3ware
+ fi
+
# I hate lacking backward compability, so provide an alternative therefore
if ! [ -x /usr/sbin/apache2-ssl-certificate ] ; then
function apache2-ssl-certificate(){
}
compdef _functions reload freload
- # list symlinks in detail (more detailed version of 'readlinkg -f')
+ # list symlinks in detail (more detailed version of 'readlink -f' and 'whence -s')
sll() {
- if [ -z "$1" ] ; then
- print 'Usage: sll <file>' >&2
- return 1
- fi
- for i in $* ; do
- ls --color=auto -la "$i"
- if [ -L "$i" ] ; then
- sll $(readlink "$i")
- fi
- done
+ [ -z "$1" ] && printf 'Usage: %s <file(s)>\n' "$0" && return 1
+ for i in "$@" ; do
+ file=$i
+ while [ -h "$file" ] ; do
+ ls -l $file
+ file=$(readlink "$file")
+ done
+ done
}
# fast manual access