Skip to content

Instantly share code, notes, and snippets.

@aldookware
Last active May 21, 2019 20:26
Show Gist options
  • Save aldookware/9bccc3cb6719c8629a5adbe8dd0c3635 to your computer and use it in GitHub Desktop.
Save aldookware/9bccc3cb6719c8629a5adbe8dd0c3635 to your computer and use it in GitHub Desktop.
My terminal setup
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