From 5a4c7233407e15ec8d356901e21a058ac0402ebd Mon Sep 17 00:00:00 2001 From: tavo-wasd Date: Sun, 10 Sep 2023 22:32:48 -0600 Subject: [PATCH] added command history number and exit code --- shell/bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/bashrc b/shell/bashrc index bd1fe09..2ff5753 100644 --- a/shell/bashrc +++ b/shell/bashrc @@ -8,7 +8,7 @@ prompt_git_branch() { GIT_BRANCH="$(git branch 2>/dev/null | grep '*' | cut -d ' ' -f 2)" [ -n "$GIT_BRANCH" ] && printf "  %s " "$GIT_BRANCH" } -PS1='\[\033[1m\]\[\033[46m\] \u@\h \[\033[44m\] \w \[\033[45m\]$(prompt_git_branch)\[\033[0m\] \[\033[2m\]\@\n⯈ \[\033[0m\]' +PS1='\[\033[2m\]($?) \[\033[1m\]\[\033[46m\] \u@\h \[\033[44m\] \w \[\033[45m\]$(prompt_git_branch)\[\033[0m\] \[\033[2m\][\!] \@\n⯈ \[\033[0m\]' PROMPT_COMMAND="echo" # Line jump after every command # General configs