Fish: function for generating gitignore containing fisher functions
This commit is contained in:
parent
314dec9c97
commit
e4bd3d7b5f
1 changed files with 11 additions and 0 deletions
11
shells/fish/functions/gitignore_fisher_functions.fish
Normal file
11
shells/fish/functions/gitignore_fisher_functions.fish
Normal 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
|
Loading…
Reference in a new issue