Last active
May 21, 2019 20:26
-
-
Save aldookware/9bccc3cb6719c8629a5adbe8dd0c3635 to your computer and use it in GitHub Desktop.
My terminal setup
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 characters
git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
orange=$(tput setaf 166); | |
purple=$(tput setaf 125); | |
yello=$(tput setaf 228); | |
green=$(tput setaf 28); | |
white=$(tput setaf 15); | |
reset=$(tput sgr0); | |
bold=$(tput bold); | |
blue=$(tput setaf 4) | |
PS1="\n\[${orange}\]\u\[${white}\] at \[${yello}\]\h \[$white\] in \[${green}\] \w \[${purple}\]$(__git_ps1) \n \[${white}\]\$ \[${reset}\]"; | |
export PS1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment