Created
February 15, 2015 03:41
-
-
Save lukecarbis/8a2fd609b7189024bf12 to your computer and use it in GitHub Desktop.
Minimalist PS1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ $(id -u) -eq 0 ]; then | |
export PS1="\[$txtred\]\u\[$txrrst\] \W \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ " | |
else | |
export PS1="\W \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ " | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment