Sfoglia il codice sorgente

shrc: fix showing last status in PS1

pull/1/head
10sr 11 anni fa
parent
commit
4d46f6edda
1 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  1. +8
    -1
      shrc

+ 8
- 1
shrc Vedi File

@@ -1194,5 +1194,12 @@ __my_set_title(){
}
PROMPT_COMMAND="__my_set_title \${USER}@\${HOSTNAME}\:\${PWD};
__my_set_screen_title \$(basename \"\$PWD\")/"
PROMPT_COMMAND="laststatus=\$?;$PROMPT_COMMAND"
if $inzsh
then
precmd(){
laststatus=$?
}
else
PROMPT_COMMAND="laststatus=\$?;$PROMPT_COMMAND"
fi
laststatus=0

Caricamento…
Annulla
Salva