Skip to content

Instantly share code, notes, and snippets.

@ktajpuri
Last active June 10, 2019 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ktajpuri/c46b206adee604b2c844f21d9517e80d to your computer and use it in GitHub Desktop.
Save ktajpuri/c46b206adee604b2c844f21d9517e80d to your computer and use it in GitHub Desktop.
change bash prompt for git
Purple="\[\033[0;35m\]" # Purple
BIGreen="\[\033[1;92m\]" # Green
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
alias s='git status'
alias b='git branch'
alias p='git pull'
alias a='git add .'
co () { git checkout "$@"; }
m () { git commit -m "$@"; }
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \1/'
}
export PS1="\u: $Purple\W ➡️ $BIGreen[\$(parse_git_branch) ]\[\033[00m\] 🔥 "
alias tr='cd /Users/ktajpuri/Desktop/project/react-teacher-ui && yarn start'
alias sr='cd /Users/ktajpuri/Desktop/project/react-student-ui && yarn start'
# ktajpuri: react-teacher-ui ➡️ [ search-filter-post ] 🔥
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment