Bladeren bron

fix tmux title

pull/1/head
10sr 11 jaren geleden
bovenliggende
commit
4918c6f57d
1 gewijzigde bestanden met toevoegingen van 12 en 14 verwijderingen
  1. +12
    -14
      shrc

+ 12
- 14
shrc Bestand weergeven

@@ -1213,8 +1213,8 @@ __my_ps1_restore_pos="\[\033[u\]"
__my_ps1_move_rightmost="\[\033[\$(tput cols)C\]"
__my_ps1_move_15left="\[\033[15D\]"
# collapse when command line is too long and try to write over this string
# __my_ps1_right="${__my_ps1_save_pos}${__my_ps1_move_rightmost}\
# ${__my_ps1_move_15left}\D{%Y/%m/%d %H:%M}${__my_ps1_restore_pos}"
# __my_ps1_right="${__my_ps1_save_pos}${__my_ps1_move_rightmost}"
# ${__my_ps1_move_15left}\D{%Y/%m/%d %H:%M}${__my_ps1_restore_pos}

$inbash && PS1="\
${__my_c4}:: ${__my_cdef}[${__my_c2}\u@\H${__my_cdef}:${__my_c1}\w/${__my_cdef}]\$(__my_ps1_info)\n\
@@ -1260,19 +1260,17 @@ __my_set_title(){
esac
}

case "$TERM" in
screen*)
if test -n "$SSH_CONNECTION"
then
__terminal_title="`whoami`@`hostname`:\$(basename \${PWD})"
else
__terminal_title="\$(basename \${PWD})"
fi
;;
*)
if test -n "$TMUX"
then
__terminal_title="\$(basename \${PWD})"
else
if test -n "$SSH_CONNECTION" && expr "$TERM" : '^screen'
then
__terminal_title="`whoami`@`hostname`:\$(basename \${PWD})"
else
__terminal_title="`whoami`@`hostname`:\${PWD}"
;;
esac
fi
fi

if $inzsh
then


Laden…
Annuleren
Opslaan