fish: git-specific abbreviations for fish v4

This commit is contained in:
Charles Gould 2024-12-23 00:29:44 -06:00
parent 1306eaad33
commit a655f68d6e
2 changed files with 2 additions and 2 deletions

View File

@ -24,3 +24,5 @@ abbr -a gr 'git restore'
abbr -a gs 'git status' abbr -a gs 'git status'
abbr -a gst 'git stash' abbr -a gst 'git stash'
abbr -a gsw 'git switch' abbr -a gsw 'git switch'
abbr -a --command git rbi 'rebase --interactive'
abbr -a --command git wipe 'restore --staged --worktree'

View File

@ -2,8 +2,6 @@
aliases = config --get-regexp --includes alias aliases = config --get-regexp --includes alias
branchsort = branch --sort='-committerdate' --format='%(HEAD) %(color:blue)%(committerdate:short)%(color:reset) %(if)%(worktreepath)%(then)%(color:reverse yellow)%(refname:short)%(color:reset)%(else)%(color:yellow)%(refname:short)%(color:reset)%(end) %(color:green)%(upstream:short)%(color:reset)' branchsort = branch --sort='-committerdate' --format='%(HEAD) %(color:blue)%(committerdate:short)%(color:reset) %(if)%(worktreepath)%(then)%(color:reverse yellow)%(refname:short)%(color:reset)%(else)%(color:yellow)%(refname:short)%(color:reset)%(end) %(color:green)%(upstream:short)%(color:reset)'
logsearch = log --color=always --pretty=tformat:'%C(blue)%cs %C(auto)%h%d %s%C(reset)' logsearch = log --color=always --pretty=tformat:'%C(blue)%cs %C(auto)%h%d %s%C(reset)'
rbi = rebase --interactive
wipe = restore --staged --worktree
[color "status"] [color "status"]
added = yellow added = yellow
changed = green changed = green