fix(copybuffer): prevent `which` alias usage (#12379)

master
Marc Cornellà 2 years ago committed by GitHub
parent 5d2d35cd17
commit 803e1a784c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      plugins/copybuffer/copybuffer.plugin.zsh

@ -2,7 +2,7 @@
# onto the system clipboard
copybuffer () {
if which clipcopy &>/dev/null; then
if builtin which clipcopy &>/dev/null; then
printf "%s" "$BUFFER" | clipcopy
else
zle -M "clipcopy not found. Please make sure you have Oh My Zsh installed correctly."

Loading…
Cancel
Save