1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

aliases: git: Strip a/b prefix from paths by default

This makes double-click copy/paste much easier

Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
Joe Groocock 2023-02-28 09:51:56 +00:00
parent fede67c22a
commit 79dc6a7389
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

10
aliases
View File

@ -168,10 +168,10 @@ alias gpsuom="git push --set-upstream origin \"\$(git defbranch)\""
alias gpall="git remote | xargs -L1 git push" alias gpall="git remote | xargs -L1 git push"
alias gl="git pull --rebase" alias gl="git pull --rebase"
alias glp="gl && gp" alias glp="gl && gp"
alias gd="git diff --patch-with-stat" alias gd="git diff --patch-with-stat --no-prefix"
alias gdni="gd --no-index" alias gdni="gd --no-index --no-prefix"
alias gds="gd --staged" alias gds="gd --staged --no-prefix"
alias gsh="git show --format=fuller --patch-with-stat" alias gsh="git show --format=fuller --patch-with-stat --no-prefix"
alias glg="git log --color --format=fuller --stat --no-merges --graph" alias glg="git log --color --format=fuller --stat --no-merges --graph"
alias glgp="git log --color --format=fuller --patch-with-stat --no-merges --graph" alias glgp="git log --color --format=fuller --patch-with-stat --no-merges --graph"
alias glog="git log --color --oneline --decorate --graph" alias glog="git log --color --oneline --decorate --graph"
@ -194,7 +194,7 @@ alias gsta='git stash'
alias gstd='gsta drop' alias gstd='gsta drop'
alias gstl='gsta list --stat --color' alias gstl='gsta list --stat --color'
alias gstp='gsta pop' alias gstp='gsta pop'
alias gstv="gsta show -p stash@{0}" alias gstv="gsta show --patch-with-stat stash@{0}"
# Docker aliases # Docker aliases
alias d=docker alias d=docker