浏览代码

chore(init): ignore any aliases when running `rm` (#11156)

Giovanni Squillero 1 年之前
父节点
当前提交
7dcabbe682
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      oh-my-zsh.sh

+ 1 - 1
oh-my-zsh.sh

@@ -143,7 +143,7 @@ fi
 unset zcompdump_revision zcompdump_fpath zcompdump_refresh
 unset zcompdump_revision zcompdump_fpath zcompdump_refresh
 
 
 # zcompile the completion dump file if the .zwc is older or missing.
 # zcompile the completion dump file if the .zwc is older or missing.
-zrecompile -q -p "$ZSH_COMPDUMP" && rm -f "$ZSH_COMPDUMP.zwc.old"
+zrecompile -q -p "$ZSH_COMPDUMP" && command rm -f "$ZSH_COMPDUMP.zwc.old"
 
 
 # Load all of the config files in ~/oh-my-zsh that end in .zsh
 # Load all of the config files in ~/oh-my-zsh that end in .zsh
 # TIP: Add files you don't want in git to .gitignore
 # TIP: Add files you don't want in git to .gitignore