aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/save_function.fish
diff options
context:
space:
mode:
Diffstat (limited to 'share/functions/save_function.fish')
-rw-r--r--share/functions/save_function.fish8
1 files changed, 8 insertions, 0 deletions
diff --git a/share/functions/save_function.fish b/share/functions/save_function.fish
index 62f7a9ea..7f04ef91 100644
--- a/share/functions/save_function.fish
+++ b/share/functions/save_function.fish
@@ -1,6 +1,14 @@
function save_function -d (N_ "Save the current definition of all specified functions to file")
+ if count $argv >/dev/null
+ switch $argv[1]
+ case -h --h --he --hel --help
+ __fish_print_help save_function
+ return 0
+ end
+ end
+
set -l res 0
set -l configdir ~/.config