From 937e72f4bf3fd1df19a55aede7fc0aeca2d57ac6 Mon Sep 17 00:00:00 2001 From: tavo-wasd <gustavo@gustavocalvo.xyz> Date: Wed, 29 Nov 2023 19:38:46 -0600 Subject: [PATCH] better PS1 --- shell/bashrc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/shell/bashrc b/shell/bashrc index 8c5f2ac..9cb2730 100644 --- a/shell/bashrc +++ b/shell/bashrc @@ -9,9 +9,14 @@ prompt_git_branch() { [ -n "$GIT_BRANCH" ] && printf "%s " "$GIT_BRANCH" } -PS1='\[\033[2m\]($?)\[\033[0m\]\[\033[1m\]\[\033[36m\] \u@\h \[\033[34m\]\w \[\033[35m\]$(prompt_git_branch)\[\033[0m\]\[\033[2m\][\!] \@\n\[\033[0m\]\[\033[2m\]$\[\033[0m\] ' -# Alt PS1 with background -#PS1='\[\033[2m\]($?) \[\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[0m\]\[\033[1m\]\[\033[36m\]\u\[\033[0m\]\ +\[\033[36m\]@\h\[\033[0m\] \ +\[\033[34m\]\w \ +\[\033[1m\]\[\033[35m\]$(prompt_git_branch)\[\033[0m\]\ +\[\033[2m\][\!] \@\[\033[0m\]\ +\n\[\033[2m\]$\[\033[0m\] ' PROMPT_COMMAND="echo" # Line jump after every command # General configs