浏览代码

fix(fastfile): use idiomatic expressions (#12708)

gsspdev 1 月之前
父节点
当前提交
ec3cb127b2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      plugins/fastfile/fastfile.plugin.zsh

+ 2 - 2
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