From 720b45f92a691b69178abefd46cf284467ae15f4 Mon Sep 17 00:00:00 2001 From: gsspdev Date: Mon, 30 Sep 2024 18:32:39 -0500 Subject: [PATCH] Update fastfile.plugin.zsh 'default' is not a standard command in zsh making this By using parameter expansion instead we're able to assign default values to unset variables while remaining compatible with vanilla zsh --- plugins/fastfile/fastfile.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/fastfile/fastfile.plugin.zsh b/plugins/fastfile/fastfile.plugin.zsh index 896fed5f7..86f224b71 100644 --- a/plugins/fastfile/fastfile.plugin.zsh +++ b/plugins/fastfile/fastfile.plugin.zsh @@ -5,8 +5,8 @@ # If they are not set yet, they will be # overwritten with their default values -default fastfile_dir "${HOME}/.fastfile" -default fastfile_var_prefix "§" +fastfile_dir="${fastfile_dir:-${HOME}/.fastfile}" +fastfile_var_prefix="${fastfile_var_prefix:-§}" ########################### # Impl