From 6c1e2ec9f4a4728dd6338b2e4ea648f6b5cd59ae Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 26 Jun 2008 19:31:30 +0200 Subject: etc/functions: Splitup into seperate files per function --- etc/functions/l | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 etc/functions/l (limited to 'etc/functions/l') 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 +} -- cgit v1.2.3