summaryrefslogtreecommitdiff
path: root/plugins/copybuffer
diff options
context:
space:
mode:
authorMarc Cornellà <marc@mcornella.com>2024-04-25 08:04:18 +0200
committerGitHub <noreply@github.com>2024-04-25 08:04:18 +0200
commit803e1a784cd520f101d126b47deea3297e6a82fc (patch)
treecdd9d08d53c9f4b8851609638ef01b2cd028fe15 /plugins/copybuffer
parent5d2d35cd1741af19553007fe0cc5324744fc58fa (diff)
downloadzsh-803e1a784cd520f101d126b47deea3297e6a82fc.tar.gz
zsh-803e1a784cd520f101d126b47deea3297e6a82fc.tar.bz2
zsh-803e1a784cd520f101d126b47deea3297e6a82fc.zip
fix(copybuffer): prevent `which` alias usage (#12379)
Diffstat (limited to 'plugins/copybuffer')
-rw-r--r--plugins/copybuffer/copybuffer.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/copybuffer/copybuffer.plugin.zsh b/plugins/copybuffer/copybuffer.plugin.zsh
index 88bda32a0..e636d9730 100644
--- a/plugins/copybuffer/copybuffer.plugin.zsh
+++ b/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."