Created
August 22, 2018 09:12
-
-
Save Yougin/2d6cdef716998ded87d7e06bd8ac7d8f to your computer and use it in GitHub Desktop.
Bash profile
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
alias gits='git status' | |
alias gitc='git commit -m' | |
alias gitca='git commit --amend' | |
alias gitf='git fetch -v' | |
alias gitl='git log --graph --oneline --date-order --decorate --color' | |
alias grh='git reset --hard' | |
alias gs='./gradlew --stop' | |
# Attach a debuger. Append it with the package name. | |
alias ad='adb shell am set-debug-app -w ' | |
# Show git branch in command line | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " | |
alias adb='/Users/yevhen.biletskiy/Library/Android/sdk/platform-tools/adb' | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment