Wow, it works on Windows too!

More information: https://gist.github.com/iegik/7485025
This commit is contained in:
Arturs Jansons
2016-07-23 11:07:06 +03:00
committed by GitHub
parent ff6ccf1729
commit dd25a25863

View File

@@ -84,6 +84,12 @@ Standard:
export PS1="\${debian_chroot:+(\$debian_chroot)}\u@\h:\w \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "
```
#### Windows
```bash
export PS1="\[\033]0;$MSYSTEM:\w\007\033[32m\]\u@\h:\[\033[33m\w \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\033[0m\]\$ "
```
Colorized:
```bash