projects
/
pkgusr
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use less(1) options to negate the need for a useless and lame shell func.
[pkgusr]
/
etc
/
pkgusr
/
bash_profile
diff --git
a/etc/pkgusr/bash_profile
b/etc/pkgusr/bash_profile
index
52d885e
..
bc756dd
100644
(file)
--- a/
etc/pkgusr/bash_profile
+++ b/
etc/pkgusr/bash_profile
@@
-13,7
+13,7
@@
LC_ALL=POSIX
PATH=/usr/lib/pkgusr:/usr/bin:/bin:/usr/X11R6/bin:/opt/qt/bin
## A couple things to make less(1) nicer.
PATH=/usr/lib/pkgusr:/usr/bin:/bin:/usr/X11R6/bin:/opt/qt/bin
## A couple things to make less(1) nicer.
-LESS=
-MRgisw
+LESS=
'-MRgiswFX'
LESSCHARSET=utf-8
LESSOPEN='|lesspipe.sh %s'
LESSCHARSET=utf-8
LESSOPEN='|lesspipe.sh %s'
@@
-72,8
+72,10
@@
fi
# Go to the home directory whenever we su to a package user.
cd
# Go to the home directory whenever we su to a package user.
cd
-# Maybe check if the build script can be updated.
-if [ ${CHECKUPDATES} -eq 1 ]; then
+
+# Maybe check if the build script can be updated, but not on dumb
+# terms so that TRAMP still works.
+if [ ${CHECKUPDATES} -eq 1 -a "$TERM" != "dumb" ]; then
checkupdates
fi
checkupdates
fi