mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
bash: fix last rc in prompt
This commit is contained in:
parent
d4b90d1df8
commit
6c74dc0167
3 changed files with 3 additions and 2 deletions
|
|
@ -57,7 +57,7 @@ set_prompt() {
|
|||
fi
|
||||
|
||||
# exit code
|
||||
[[ $last_exit_code -ne 0 ]] && PS1+=" ${BW}${last_exit_code}"
|
||||
[[ $LAST_CMD_RC -ne 0 ]] && PS1+=" ${BW}${LAST_CMD_RC}"
|
||||
|
||||
# closing prompt
|
||||
PS1+="${B}]"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue