Initial commit
This commit is contained in:
40
home/apps/fish/conf.d/abbreviations.fish
Normal file
40
home/apps/fish/conf.d/abbreviations.fish
Normal file
@@ -0,0 +1,40 @@
|
||||
# General
|
||||
abbr -a nv nvim
|
||||
abbr -a lg lazygit
|
||||
abbr -a tx tmux
|
||||
abbr -a pc pacman
|
||||
abbr -a cl clear
|
||||
function fastparentcd
|
||||
echo cd (string repeat -n (math (string length -- $argv[1]) - 1) ../)
|
||||
end
|
||||
abbr -a dotdot -r "^\.\.+\$" -f fastparentcd
|
||||
|
||||
# Git
|
||||
abbr -a g git
|
||||
abbr -a ga git add
|
||||
abbr -a gs git status
|
||||
abbr -a gss git status -s
|
||||
abbr -a gc git commit
|
||||
abbr -a gca git commit --amend
|
||||
abbr -a gb git rebase
|
||||
abbr -a gbc git rebase --continue
|
||||
abbr -a gg git push
|
||||
abbr -a gp git pull
|
||||
abbr -a gw git switch
|
||||
abbr -a go git restore
|
||||
abbr -a gr git reset
|
||||
abbr -a goo git restore -S
|
||||
abbr -a gri git rebase -i
|
||||
abbr -a ge git remote
|
||||
abbr -a ger git remote remove
|
||||
abbr -a gea git remote add
|
||||
abbr -a ges git remote show -n
|
||||
abbr -a gf git fetch
|
||||
abbr -a gd git diff
|
||||
abbr -a gds git diff --staged
|
||||
|
||||
# Zig
|
||||
abbr -a zb zig build
|
||||
abbr -a zbr zig build run
|
||||
abbr -a zbe zig build-exe
|
||||
abbr -a zbt zig build test
|
||||
Reference in New Issue
Block a user