fix(copybuffer): prevent `which` alias usage (#12379)
Diff
1diff --git a/plugins/copybuffer/copybuffer.plugin.zsh b/plugins/copybuffer/copybuffer.plugin.zsh
2index 88bda32a080fab66f5cb582b6a69998161366ef0..e636d973001296c50f0afa55c8e98669192497ec 100644
3--- a/plugins/copybuffer/copybuffer.plugin.zsh
4+++ b/plugins/copybuffer/copybuffer.plugin.zsh
5@@ -2,7 +2,7 @@
6 # onto the system clipboard
7 8 copybuffer () {
9- if which clipcopy &>/dev/null; then
10+ if builtin which clipcopy &>/dev/null; then
11 printf "%s" "$BUFFER" | clipcopy
12 else
13 zle -M "clipcopy not found. Please make sure you have Oh My Zsh installed correctly."