diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-28 10:08:14 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-28 10:08:14 +0200 |
commit | 8896ac675b5bf513074d7552da7d9f4cf8d16217 (patch) | |
tree | 8c126c7993d9148658f9e0dff4033194c88f5ecd /etc/functions/l | |
parent | b906e284447b1515056b8a763d32fb5f4a78b28b (diff) |
now use autoloading for functions
Diffstat (limited to 'etc/functions/l')
-rw-r--r-- | etc/functions/l | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/etc/functions/l b/etc/functions/l index d461998..c95a299 100644 --- a/etc/functions/l +++ b/etc/functions/l @@ -1,12 +1,10 @@ # self-explaining, I think -l () { - if [[ -f "$1" ]]; then - case "$1" in - *.bz2) bzless "$1" ;; - *.gz) zless "$1" ;; - *) less "$1" ;; - esac - else - echo "No such file, dude." - fi -} +if [[ -f "$1" ]]; then + case "$1" in + *.bz2) bzless "$1" ;; + *.gz) zless "$1" ;; + *) less "$1" ;; + esac +else + echo "No such file, dude." +fi |