commit 4713f58173dcee59db94e832e85d6745c4211781 (patch)
parent e9090cb0af5efa2988e7c98d72fcd5f8c2f78b35
Author: Alexander Karle <akarle@umass.edu>
Date: Fri, 27 Jul 2018 17:46:10 -0400
[bash] bash_prompt error on windows 10
Solution: https://stackoverflow.com/questions/33220492/ps1-bash-command-substitution-not-working-on-windows-10
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bash/bash_prompt b/bash/bash_prompt
@@ -31,7 +31,7 @@ if tput setaf 1 &> /dev/null; then tput sgr0
BOLD="\[$(tput bold)\]"
RESET="\[$(tput sgr0)\]"
- export PS1="\n$BOLD$BLUE\w $RESET$GRAY\$(parse_git_branch)\n$BOLD$MAGENTA\$ $RESET"
+ export PS1="\n$BOLD$BLUE\w $RESET$GRAY\$(parse_git_branch)"$'\n'"$BOLD$MAGENTA\$ $RESET"
export PS2="$ORANGE→ $RESET"
else
# TODO: write better case for too few colors...