diff --git a/share/functions/save_function.fish b/share/functions/save_function.fish index a7237ff61..b1bc6e9cf 100644 --- a/share/functions/save_function.fish +++ b/share/functions/save_function.fish @@ -18,7 +18,7 @@ function save_function -d (N_ "Save the current definition of all specified func for i in $configdir $configdir/fish $configdir/fish/functions if not test -d $i - if not builtin mkdir $configdir >/dev/null + if not builtin mkdir $i >/dev/null printf (_ "%s: Could not create configuration directory\n") save_function return 1 end