functions

This commit is contained in:
cupcakearmy 2023-02-23 20:51:23 +01:00
parent 70f150695a
commit 4a005f8143
No known key found for this signature in database
GPG Key ID: 3235314B4D31232F
12 changed files with 51 additions and 1 deletions

15
files/fish/.gitignore vendored
View File

@ -1,5 +1,18 @@
completions completions
conf.d conf.d
functions
themes themes
fish_variables fish_variables
functions/*
!functions/brewer.fish
!functions/dc.fish
!functions/dsp.fish
!functions/e.fish
!functions/k.fish
!functions/l.fish
!functions/n.fish
!functions/p.fish
!functions/pe.fish
!functions/px.fish
!functions/rsync.fish

View File

@ -0,0 +1,3 @@
function brewer --wraps='brew update && brew upgrade && brew cleanup' --description 'alias brewer brew update && brew upgrade && brew cleanup'
brew update && brew upgrade && brew cleanup $argv;
end

View File

@ -0,0 +1,4 @@
# Defined in - @ line 1
function dc --wraps=docker-compose --description 'alias dc=docker-compose'
docker compose $argv;
end

View File

@ -0,0 +1,3 @@
function dsp --wraps='docker system prune -a --volumes' --description 'alias dsp docker system prune -a --volumes'
docker system prune -a --volumes $argv;
end

View File

@ -0,0 +1,3 @@
function e --wraps=nvim --description 'alias e nvim'
nvim $argv;
end

View File

@ -0,0 +1,3 @@
function k --wraps=kubectl --description 'alias k kubectl'
kubectl $argv;
end

View File

@ -0,0 +1,4 @@
# Defined in - @ line 1
function l --wraps=la --description 'alias l la'
la $argv;
end

View File

@ -0,0 +1,4 @@
function n
nvm install $argv;
nvm use $argv;
end

View File

@ -0,0 +1,4 @@
# Defined via `source`
function p --wraps=pnpm --description 'alias p pnpm'
pnpm $argv;
end

View File

@ -0,0 +1,3 @@
function pe --wraps='pnpm exec' --description 'alias pe pnpm exec'
pnpm exec $argv;
end

View File

@ -0,0 +1,3 @@
function px --wraps=pnpx --description 'alias px pnpx'
pnpm -s dlx $argv;
end

View File

@ -0,0 +1,3 @@
function rsync --description 'alias rsync rsync -az --info=progress2'
command rsync -az --info=progress2 $argv;
end