Use less(1) options to negate the need for a useless and lame shell func.
[pkgusr] / etc / pkgusr / bash_profile
index 52d885e..bc756dd 100644 (file)
@@ -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.
-LESS=-MRgisw
+LESS='-MRgiswFX'
 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
-# 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