Skip to content

Instantly share code, notes, and snippets.

@Yougin
Created August 22, 2018 09:12
Show Gist options
  • Save Yougin/2d6cdef716998ded87d7e06bd8ac7d8f to your computer and use it in GitHub Desktop.
Save Yougin/2d6cdef716998ded87d7e06bd8ac7d8f to your computer and use it in GitHub Desktop.
Bash profile
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