diff options
author | Jonas Smedegaard <dr@jones.dk> | 2016-10-21 18:34:44 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2016-10-21 18:34:44 +0200 |
commit | f69ba8dc4e7314cbfd92b86cfdc7964a3da2542a (patch) | |
tree | 31b2184d7f38011cff307a81f027b5dae7b08910 /xsh | |
parent | fe4cd62c0bab3889490690148160b5760b0b52b8 (diff) |
Stop mess with environment variable TERM.
Diffstat (limited to 'xsh')
-rwxr-xr-x | xsh | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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 |