Browse Source

fix title settings for remote host

undefined
10sr 11 years ago
parent
commit
d72e9e0e16
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      shrc

+ 1
- 2
shrc View File

@@ -1254,7 +1254,6 @@ __my_set_title(){
case $TERM in case $TERM in
(rxvt*|xterm*|aterm|screen*) (rxvt*|xterm*|aterm|screen*)
test -t 1 && test -t 1 &&
test -n "$DISPLAY" &&
test -z "$EMACS" && test -z "$EMACS" &&
echo -n -e "\033]0;$1\007" echo -n -e "\033]0;$1\007"
;; ;;
@@ -1265,7 +1264,7 @@ if test -n "$TMUX"
then then
__terminal_title="\$(basename \${PWD})" __terminal_title="\$(basename \${PWD})"
else else
__terminal_title"\${USER}@\${HOSTNAME}\:\${PWD}"
__terminal_title="\${USER}@\${HOSTNAME}:\${PWD}"
fi fi
if $inzsh if $inzsh
then then


Loading…
Cancel
Save