Created
June 26, 2015 21:06
-
-
Save clathrop/f60e85853294c64507b4 to your computer and use it in GitHub Desktop.
Revisions
-
clathrop created this gist
Jun 26, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ ################################################################################# # Add personal setup here. # give a nickname to this machine for reference purposes on cli export HOSTNICK="rd35" parse_git_branch() { git branch 2>/dev/null | grep \* | sed -ne 's#\* ##p' | awk -F / '{print " [GIT:"$0 "]"}' } echo_host() { echo $HOSTNICK } export PS1='$(echo_host): \[\033[00;32m\]\w\[\033[00m\]$(parse_git_branch)\$ ' echo "welcome back, Carter" #################################################################################