From e4bd3d7b5f84dccf66d07e211dc6dee51528b712 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sun, 13 May 2018 15:52:27 +0200 Subject: [PATCH] Fish: function for generating gitignore containing fisher functions --- shells/fish/functions/gitignore_fisher_functions.fish | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 shells/fish/functions/gitignore_fisher_functions.fish diff --git a/shells/fish/functions/gitignore_fisher_functions.fish b/shells/fish/functions/gitignore_fisher_functions.fish new file mode 100644 index 0000000..a9df736 --- /dev/null +++ b/shells/fish/functions/gitignore_fisher_functions.fish @@ -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