diff --git a/.bashrc b/.bashrc index ae1c580..6d242f3 100644 --- a/.bashrc +++ b/.bashrc @@ -69,10 +69,21 @@ GEM_HOME="$(ls -t -U | ruby -e 'puts Gem.user_dir')" GEM_PATH="$GEM_HOME" PATH="$PATH:$GEM_HOME/bin" +Reset='\033[0m' +Green='\033[32m' +Red='\033[31m' +Blue='\033[34m' +Yellow='\033[33m' + # Set bash prompt -RCol='\033[0m' -Gre='\033[32m'; -Red='\033[31m'; -Blu='\033[34m'; -Yel='\033[33m'; -PS1="${RCol}┌─[\`if [ \$? = 0 ]; then echo "${Gre}"; else echo "${Red}"; fi\`\t\[${Rcol}\] \[${Blu}\]\h\[${RCol}\] \[${Yel}\]\w\[${RCol}\]]\n└─╼ " +set_bash_prompt() { + PS1="${Reset}┌─" + PS1="${PS1}${Red}[\t]" + PS1="${PS1}${Blue}[\h]" + PS1="${PS1}${Yellow}[\w]" + PS1="${PS1}${Blue}$(__git_ps1 "[%s]")" + PS1="${PS1}${Reset}\n└─╼ " + MSYS2_PS1="$PS1" +} + +PROMPT_COMMAND=set_bash_prompt \ No newline at end of file