Created
July 31, 2017 18:31
-
-
Save lgranger/185498f433d76a3324a550203bd71c12 to your computer and use it in GitHub Desktop.
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
# If you come from bash you might have to change your $PATH. | |
export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/lgranger/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="agnoster" | |
source $ZSH/oh-my-zsh.sh | |
alias aglog="adb logcat | grep " | |
alias asit="adb shell input text" | |
alias as="adb shell" | |
alias ad="adb devices -l" | |
alias cl="clear" | |
alias cdu="cd ../" | |
alias grep-repo='grep -r --exclude-dir='\''build'\'' --exclude-dir='\''.idea'\'' --include='\''*.xml'\'' --include='\''*.java'\'' --include='\''Config'\''' | |
alias gcomf="git diff-tree --no-commit-id --name-only -r" | |
alias gst="git status" | |
alias gsts="git status --short" | |
alias gstash="git stash -u" | |
alias gdiff="git diff" | |
alias glog="git log" | |
alias glo="git log --oneline --decorate --graph --all -20" | |
alias gloc="git log --oneline --decorate --graph --all -15 --pretty=format:'%C(yellow)%h%C(reset) - %an [%C(green)%ar%C(reset)] %s'" | |
alias gflog="git reflog" | |
alias gflac="git reflog --oneline --decorate --all -20 --pretty=format:'%C(yellow)%h%C(reset) - %an [%C(green)%ar%C(reset)] %s'" | |
alias gcheck="git checkout" | |
alias gcheckb="git checkout -b" | |
alias gcom="git commit -m" | |
alias guncom="git reset --soft HEAD^" | |
alias gcl="git commit" #git commit long format | |
alias gcal="git commit --amend" #git commit amend | |
alias gcas="git commit --amend --no-edit" #git commit amend | |
alias gacom="gaa && gcom" | |
alias ga="git add" | |
alias gaa="git add ." #git add all | |
alias gi="git rebase -i" | |
alias g="git" | |
alias unstage="git reset" | |
alias gu="git reset" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment