diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-08-21 18:14:22 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-08-21 18:14:22 +0200 |
commit | c9e9b2b66cb3355488187c54519c67ec5545c1a0 (patch) | |
tree | 0c25d5f43067188394e1c6f0627f2df3068e6fa9 | |
parent | 4899645ca2ab9e2b91f38d9d15a78456cb0919b0 (diff) |
replaced 'l' function by lesspipe
-rw-r--r-- | etc/functions/l | 10 | ||||
-rw-r--r-- | etc/parameters | 2 |
2 files changed, 2 insertions, 10 deletions
diff --git a/etc/functions/l b/etc/functions/l deleted file mode 100644 index c95a299..0000000 --- a/etc/functions/l +++ /dev/null @@ -1,10 +0,0 @@ -# self-explaining, I think -if [[ -f "$1" ]]; then - case "$1" in - *.bz2) bzless "$1" ;; - *.gz) zless "$1" ;; - *) less "$1" ;; - esac -else - echo "No such file, dude." -fi diff --git a/etc/parameters b/etc/parameters index 529163b..b746d4f 100644 --- a/etc/parameters +++ b/etc/parameters @@ -20,6 +20,8 @@ export CALENDAR_DIR=$HOME/packages/calendar/etc export HOST export COLUMNS export LINES +export LESSOPEN='| /usr/bin/lesspipe %s' +export LESSCLOSE='/usr/bin/lesspipe %s %s' # others linux: export LANG=en_US.UTF-8 |