fix fish funcs

This commit is contained in:
Hedy Li 2020-12-25 19:50:50 +08:00
parent cbc5903630
commit 3ee311b2c6
7 changed files with 27 additions and 1 deletions

View File

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

View File

@ -0,0 +1,6 @@
function cat --wraps=ccat --description 'alias cat=ccat'
if which ccat > /dev/null
ccat $argv;
else
cat $argv;
end

View File

@ -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

View File

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

View File

@ -0,0 +1,4 @@
function hellofish
end

View File

@ -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

View File

@ -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;