Last active
June 10, 2019 15:00
-
-
Save ktajpuri/c46b206adee604b2c844f21d9517e80d to your computer and use it in GitHub Desktop.
change bash prompt for git
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
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