fish: Add some git helpers

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-01-13 19:34:08 +05:30
parent 939486ef54
commit d023335a58

View file

@ -12,17 +12,6 @@ export GOOGLE_APPLICATION_CREDENTIALS='/home/core/juspay/godel-big-q-1eefe6004aa
alias b="cd .."
alias c="clear"
alias gp="git pull"
alias grv="git remote -v"
alias gba="git branch -a"
alias gcb="git checkout -b"
alias gf="git fetch"
alias gl="git log"
alias gm="git merge"
alias gpu="git push -u"
alias gs="git status"
alias vg="vgrep"
alias vs="vgrep -s"
alias v="nvim"
alias tksa="tmux kill-session -a"
alias tks="tmux kill-server"
@ -37,3 +26,28 @@ alias gsl="gst-launch-1.0"
alias sds="systemctl status "
alias sde="systemctl enable "
alias sdd="systemctl disable "
# Git helpers
alias gp="git pull"
alias gd="git diff"
alias grv="git remote -v"
alias gba="git branch -a"
alias gcb="git checkout -b"
alias gf="git fetch"
alias gl="git log"
alias gm="git merge"
alias gpu="git push -u"
alias gs="git status"
alias vg="vgrep"
alias vs="vgrep -s"
# Open modified files
# ACMR = Added || Copied || Modified || Renamed
alias v="nvim"
# Edit all uncommitted files that have changes since the last commit (be they staged or unstaged)
alias vd="nvim (git diff HEAD --name-only --diff-filter=ACMR)"
# Edit all staged files that have changes since the last commit
alias vds="nvim (git diff --staged --name-only --diff-filter=ACMR)"
# Edit all files that were altered in the last commit
alias vdc="nvim (git diff HEAD^ --name-only --diff-filter=ACMR)"
# Edit files changed since master
alias vdm="nvim (git diff master --name-only --diff-filter=ACMR)"