Fish: function for generating gitignore containing fisher functions
This commit is contained in:
parent
314dec9c97
commit
e4bd3d7b5f
|
@ -0,0 +1,11 @@
|
||||||
|
function gitignore_fisher_functions
|
||||||
|
set functions_path ~/.config/fish/functions/
|
||||||
|
if not test -e $functions_path
|
||||||
|
echo "Functions directory not found"
|
||||||
|
else
|
||||||
|
cd $functions_path
|
||||||
|
find * -type l > .gitignore
|
||||||
|
echo "fisher.fish" >> .gitignore
|
||||||
|
cd -
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue