summaryrefslogtreecommitdiff
path: root/xsh
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2016-10-21 18:34:44 +0200
committerJonas Smedegaard <dr@jones.dk>2016-10-21 18:34:44 +0200
commitf69ba8dc4e7314cbfd92b86cfdc7964a3da2542a (patch)
tree31b2184d7f38011cff307a81f027b5dae7b08910 /xsh
parentfe4cd62c0bab3889490690148160b5760b0b52b8 (diff)
Stop mess with environment variable TERM.
Diffstat (limited to 'xsh')
-rwxr-xr-xxsh8
1 files changed, 2 insertions, 6 deletions
diff --git a/xsh b/xsh
index d6273d4..32a906f 100755
--- a/xsh
+++ b/xsh
@@ -87,7 +87,7 @@ fi
case `readlink /etc/alternatives/x-terminal-emulator | xargs basename` in
# rxvt*) opts="+sb -sl 500 -n \"$titletext\""; titleoptname="-title";;
rxvt*) opts="+sb -sl 500 -ls"; titleoptname="-title";;
- urxvt*) opts="+sb -sl 500 -ls"; titleoptname="-title"; term="rxvt";;
+ urxvt*) opts="+sb -sl 500 -ls"; titleoptname="-title";;
*xterm) opts="+sb -sl 500 +wc"; titleoptname="-title";;
gnome-terminal) opts=""; titleoptname="--title";;
gnome-terminal.wrapper) opts=""; titleoptname="-title";;
@@ -116,11 +116,7 @@ case $prg_base in
esac
prg_local="$prg_base $prg_opts_local"
-if [ -n "$term" ]; then
- prg_remote="bash --login -i -c \"test -e /etc/debian_version && export TERM=rxvt || export TERM=xterm; $prg_base $prg_opts_remote\""
-else
- prg_remote="bash --login -i -c \"test -e /etc/debian_version || export TERM=xterm; $prg_base $prg_opts_remote\""
-fi
+prg_remote="bash --login -i -c \"$prg_base $prg_opts_remote\""
prg_remote_suu="echo -n 'Changing to root...: '; su $su_opts -c \"cd; $prg_base $prg_opts_remote\""
if [ "$SU" != 1 ]; then