diff --git a/.config/fish/functions/bom.fish b/.config/fish/functions/bom.fish new file mode 100644 index 0000000..aa37e51 --- /dev/null +++ b/.config/fish/functions/bom.fish @@ -0,0 +1,4 @@ +# Defined in - @ line 1 +function bom --wraps=bombadillo --description 'alias bom=bombadillo' + bombadillo $argv; +end diff --git a/.config/fish/functions/cat.fish b/.config/fish/functions/cat.fish new file mode 100644 index 0000000..e212cc1 --- /dev/null +++ b/.config/fish/functions/cat.fish @@ -0,0 +1,6 @@ +function cat --wraps=ccat --description 'alias cat=ccat' + if which ccat > /dev/null + ccat $argv; + else + cat $argv; +end diff --git a/.config/fish/functions/codespell.fish b/.config/fish/functions/codespell.fish new file mode 100644 index 0000000..a1ac2c9 --- /dev/null +++ b/.config/fish/functions/codespell.fish @@ -0,0 +1,4 @@ +# Defined in - @ line 1 +function codespell --wraps='codespell --skip="venv,.git,*.pyc,*.png,*.PNG,*.gif"' --wraps='codespell --skip="venv,.git,*.pyc,*.png,*.PNG,*.gif",.vim' --description 'alias codespell=codespell --skip="venv,.git,*.pyc,*.png,*.PNG,*.gif",.vim' + command codespell --skip="venv,.git,*.pyc,*.png,*.PNG,*.gif",.vim $argv; +end diff --git a/.config/fish/functions/hdi.fish b/.config/fish/functions/hdi.fish new file mode 100644 index 0000000..01c653d --- /dev/null +++ b/.config/fish/functions/hdi.fish @@ -0,0 +1,4 @@ +# Defined in - @ line 1 +function hdi --wraps='howdoi -c' --description 'alias hdi=howdoi -c' + howdoi -c $argv; +end diff --git a/.config/fish/functions/hellofish.fish b/.config/fish/functions/hellofish.fish new file mode 100644 index 0000000..5c860fa --- /dev/null +++ b/.config/fish/functions/hellofish.fish @@ -0,0 +1,4 @@ +function hellofish + +end + diff --git a/.config/fish/functions/newvenv.fish b/.config/fish/functions/newvenv.fish new file mode 100644 index 0000000..2870938 --- /dev/null +++ b/.config/fish/functions/newvenv.fish @@ -0,0 +1,4 @@ +# Defined in - @ line 1 +function newvenv --wraps='python3 -m virtualenv venv' --wraps='python3 -m virtualenv venv && source ./venv/activate.fish' --wraps='python3 -m virtualenv venv && source ./venv/bin/activate.fish' --description 'alias newvenv=python3 -m virtualenv venv && source ./venv/bin/activate.fish' + python3 -m virtualenv venv && source ./venv/bin/activate.fish $argv; +end diff --git a/.config/fish/functions/rm.fish b/.config/fish/functions/rm.fish index 2b32448..a0fa7bd 100644 --- a/.config/fish/functions/rm.fish +++ b/.config/fish/functions/rm.fish @@ -1,5 +1,5 @@ function rm --wraps=trash --description 'alias rm=trash' - if which trash + if which trash > /dev/null trash $argv; else /usr/bin/rm $argv;