浏览代码

Unset all local functions after running them

Ilya Gorski 5 年之前
父节点
当前提交
0565251c3b
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      plugins/fzf/fzf.plugin.zsh

+ 2 - 0
plugins/fzf/fzf.plugin.zsh

@@ -91,3 +91,5 @@ function indicate_error() {
 # Check for debian package first, because it easy to short cut
 # Check for debian package first, because it easy to short cut
 # Indicate to user that fzf installation not found if nothing worked
 # Indicate to user that fzf installation not found if nothing worked
 setup_using_debian_package || setup_using_base_dir || indicate_error
 setup_using_debian_package || setup_using_base_dir || indicate_error
+
+unset -f setup_using_debian_package setup_using_base_dir indicate_error