diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-10-07 09:18:12 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-10-07 09:18:12 +0200 |
commit | c84ddbdc6905b98304c1a39cad1c94c9cb0e62ff (patch) | |
tree | 1e1c54bd4ed54e304bda2c242cd8ed53a40301fa /etc/parameters | |
parent | 72525491ad099f4e45ed35dd989e27d87732b3d1 (diff) |
parameters: Only use lesspipe when it's available
Diffstat (limited to 'etc/parameters')
-rw-r--r-- | etc/parameters | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/parameters b/etc/parameters index 0374426..12d6f37 100644 --- a/etc/parameters +++ b/etc/parameters @@ -19,8 +19,10 @@ 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' +if [[ -x /usr/bin/lesspipe ]] { + export LESSOPEN='| /usr/bin/lesspipe %s' + export LESSCLOSE='/usr/bin/lesspipe %s %s' +} # others linux: export LANG=en_US.UTF-8 |