]> saetta.ns0.it Git - msys2/commitdiff
Prompt bash su 2 righe.
authorAndrea Zagli <azagli@libero.it>
Tue, 9 Sep 2014 10:03:42 +0000 (12:03 +0200)
committerAndrea Zagli <azagli@libero.it>
Tue, 9 Sep 2014 10:03:42 +0000 (12:03 +0200)
tools/bash.bashrc

index 26f157aa16b95dfea66c084228b93356a4c18d6b..f5d0bcd3bda525f7bc231cc6f66cecac9da3f8e6 100644 (file)
@@ -18,7 +18,9 @@
 [ -r /etc/git-prompt.sh ] && . /etc/git-prompt.sh
 
 # Set a default prompt of: user@host and current_directory
-PS1='\[\e]0;$MSYSTEM \w\a\]\n\[\e[32m\]\u@\h:\[\e[33m\]\w\[\e[0m\]$(__git_ps1)\$ '
+PS1='\[\e]0;$MSYSTEM \w\a\]\n\[\e[32m\]\u@\h:\[\e[33m\]\w\[\e[0m\]'
+PS1="$PS1"'`__git_ps1`'
+PS1="$PS1"'\n\$ '
 
 # Uncomment to use the terminal colours set in DIR_COLORS
 # eval "$(dircolors -b /etc/DIR_COLORS)"