diff --git a/.config/fish/functions/aur.fish b/.config/fish/functions/aur.fish new file mode 100644 index 0000000..887720e --- /dev/null +++ b/.config/fish/functions/aur.fish @@ -0,0 +1,11 @@ +# Route aur build/sync through the ccache wrapper (~/.local/bin/aurb, aurs) +function aur --wraps aur --description 'aur with ccache for build/sync' + switch "$argv[1]" + case build + aurb $argv[2..-1] + case sync + aurs $argv[2..-1] + case '*' + command aur $argv + end +end diff --git a/.config/fish/functions/su.fish b/.config/fish/functions/su.fish new file mode 100644 index 0000000..ba10371 --- /dev/null +++ b/.config/fish/functions/su.fish @@ -0,0 +1,3 @@ +function su + command su --shell=/usr/bin/fish $argv +end