Explorar el Código

shrc: Fix how the terminal title is set

On some systems terminal title is set by default by PROMPT_COMMAND,
so add my setting at the last of it.
pull/15/head
10sr hace 9 años
padre
commit
6f43f8f757
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. +6
    -1
      shrc

+ 6
- 1
shrc Ver fichero

@@ -1269,6 +1269,11 @@ then
eval __my_set_title ${__terminal_title}
}
else
PROMPT_COMMAND="laststatus=\$?;__my_set_title \"${__terminal_title}\";$PROMPT_COMMAND"
if test -n "$PROMPT_COMMAND"
then
PROMPT_COMMAND="laststatus=\$?;$PROMPT_COMMAND;__my_set_title \"${__terminal_title}\""
else
PROMPT_COMMAND="laststatus=\$?;__my_set_title \"${__terminal_title}\""
fi
fi
laststatus=0

Cargando…
Cancelar
Guardar