summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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