summaryrefslogtreecommitdiff
path: root/etc/functions/l
diff options
context:
space:
mode:
Diffstat (limited to 'etc/functions/l')
-rw-r--r--etc/functions/l20
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