fish config

This commit is contained in:
Fabian Becker
2023-12-10 16:16:59 +01:00
parent 33031165b5
commit 6085f0ffb8
4 changed files with 106 additions and 0 deletions

11
.config/fish/config.fish Normal file
View File

@@ -0,0 +1,11 @@
if status is-interactive
# Commands to run in interactive sessions can go here
end
function multicd
echo cd (string repeat -n (math (string length -- $argv[1]) - 1) ../)
end
abbr --add dotdot --regex '^\.\.+$' --function multicd
abbr -a -- gst 'git status'
abbr -a -- gca 'git commit --amend'
abbr -a -- gpf 'git push -f'
abbr -a -- gp 'git pull'