7dcabbe6826073ef6069c8a4b6f9a943f00d2df0

Author
Giovanni Squillero <squillero@polito.it>
Committer
GitHub <noreply@github.com>
Date

Message

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

Diff

 1diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
 2index d6ef97a07e108057fb5d4753360da77ff6dd245f..29d39ca23523cb0ad2b5031413de16b33dab8edb 100644
 3--- a/oh-my-zsh.sh
 4+++ b/oh-my-zsh.sh
 5@@ -143,7 +143,7 @@ fi
 6 unset zcompdump_revision zcompdump_fpath zcompdump_refresh
 7 
 8 # zcompile the completion dump file if the .zwc is older or missing.
 9-zrecompile -q -p "$ZSH_COMPDUMP" && rm -f "$ZSH_COMPDUMP.zwc.old"
10+zrecompile -q -p "$ZSH_COMPDUMP" && command rm -f "$ZSH_COMPDUMP.zwc.old"
11 
12 # Load all of the config files in ~/oh-my-zsh that end in .zsh
13 # TIP: Add files you don't want in git to .gitignore