From 8896ac675b5bf513074d7552da7d9f4cf8d16217 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 28 Jun 2008 10:08:14 +0200 Subject: now use autoloading for functions --- etc/functions/l | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'etc/functions/l') 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 -- cgit v1.2.3