Skip to content

Commit

Permalink
fix(copybuffer): prevent which alias usage (#12379)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcornella committed Apr 25, 2024
1 parent 5d2d35c commit 803e1a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/copybuffer/copybuffer.plugin.zsh
Expand Up @@ -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."
Expand Down

0 comments on commit 803e1a7

Please sign in to comment.