summaryrefslogtreecommitdiff
path: root/oh-my-zsh.sh
diff options
context:
space:
mode:
authorGiovanni Squillero <squillero@polito.it>2022-09-10 16:57:23 +0200
committerGitHub <noreply@github.com>2022-09-10 16:57:23 +0200
commit7dcabbe6826073ef6069c8a4b6f9a943f00d2df0 (patch)
tree8c58f11871e5c16cd09c7c81aad198376f25cb19 /oh-my-zsh.sh
parentdfa88b4d369f6afc7205af0b399a0ef05a4bef2e (diff)
downloadzsh-7dcabbe6826073ef6069c8a4b6f9a943f00d2df0.tar.gz
zsh-7dcabbe6826073ef6069c8a4b6f9a943f00d2df0.tar.bz2
zsh-7dcabbe6826073ef6069c8a4b6f9a943f00d2df0.zip
chore(init): ignore any aliases when running `rm` (#11156)
Diffstat (limited to 'oh-my-zsh.sh')
-rw-r--r--oh-my-zsh.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
index d6ef97a07..29d39ca23 100644
--- a/oh-my-zsh.sh
+++ b/oh-my-zsh.sh
@@ -143,7 +143,7 @@ fi
unset zcompdump_revision zcompdump_fpath zcompdump_refresh
# 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
# TIP: Add files you don't want in git to .gitignore