diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-26 19:31:30 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-26 19:31:30 +0200 |
commit | 6c1e2ec9f4a4728dd6338b2e4ea648f6b5cd59ae (patch) | |
tree | 0d5a19ce698652f38445bbae0716d60af0302c7e /etc/functions/l | |
parent | 1f9b6f887144dea73f5c39c1943b9905355602a6 (diff) |
etc/functions: Splitup into seperate files per function
Diffstat (limited to 'etc/functions/l')
-rw-r--r-- | etc/functions/l | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/functions/l b/etc/functions/l new file mode 100644 index 0000000..d461998 --- /dev/null +++ b/etc/functions/l @@ -0,0 +1,12 @@ +# 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 +} |