Fish: function for generating gitignore containing fisher functions

This commit is contained in:
Marcel Kapfer 2018-05-13 15:52:27 +02:00
parent 314dec9c97
commit e4bd3d7b5f
Signed by: mmk2410
GPG Key ID: CADE6F0C09F21B09
1 changed files with 11 additions and 0 deletions

View File

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