Created
December 10, 2011 13:50
-
-
Save benjamintanweihao/1455211 to your computer and use it in GitHub Desktop.
My current pimped 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
c_cyan=`tput setaf 6` | |
c_sgr0=`tput setaf 14` | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
PS1="\n\[\e[30;1m\]\[\016\]\[\017\](\[\e[34;1m\]\w\[\e[30;1m\])-(\[\e[1;33m\]\@ \d\[\e[30;1m\])-(\[\e[32;1m\]\$(ls -1 | wc -l | sed 's: ::g') files, \$(ls -lah | grep -m 1 total | sed 's/total //')b\[\e[30;1m\]):\[${c_cyan}\]\e[30;1m\](\e[1;31m\]\$(parse_git_branch)\e[30;1m\]) \[\e[0m\]\n\[\e[1;33m\]#\[${c_sgr0}\] " |
See Google +! :)
…On Sun, Dec 11, 2011 at 12:47 AM, Eli James < ***@***.*** > wrote:
Wow, what's this? o.O
---
Reply to this email directly or view it on GitHub:
https://gist.github.com/1455211
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wow, what's this? o.O