Explorar el Código

Merge branch 'master' of github.com:10sr/dotfiles

undefined
10sr hace 11 años
padre
commit
0b6af968d9
Se han modificado 1 ficheros con 14 adiciones y 7 borrados
  1. +14
    -7
      shrc

+ 14
- 7
shrc Ver fichero

@@ -1254,19 +1254,26 @@ __my_set_title(){
case $TERM in
(rxvt*|xterm*|aterm|screen*)
test -t 1 &&
test -n "$DISPLAY" &&
test -z "$EMACS" &&
echo -n -e "\033]0;$1\007"
;;
esac
}

if test -n "$TMUX"
then
__terminal_title="\$(basename \${PWD})"
else
__terminal_title"\${USER}@\${HOSTNAME}\:\${PWD}"
fi
case "$TERM" in
screen*)
if test -n "$SSH_CONNECTION"
then
__terminal_title="\${USER}@\${HOSTNAME}:\$(basename \${PWD})"
else
__terminal_title="\$(basename \${PWD})"
fi
;;
*)
__terminal_title="\${USER}@\${HOSTNAME}:\${PWD}"
;;
esac

if $inzsh
then
precmd(){


Cargando…
Cancelar
Guardar