diff options
author | Marc Cornellà <hello@mcornella.com> | 2022-01-26 17:13:10 +0100 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2022-01-26 17:13:10 +0100 |
commit | 3741d1aa0253291c432e6ce3469f1d16dedbc914 (patch) | |
tree | 48973cf3f3de1d82351883294be0dd487d1faff3 /plugins/osx | |
parent | fc40b53e6460560ed9b256deb87f2165f8d48f1f (diff) | |
download | zsh-3741d1aa0253291c432e6ce3469f1d16dedbc914.tar.gz zsh-3741d1aa0253291c432e6ce3469f1d16dedbc914.tar.bz2 zsh-3741d1aa0253291c432e6ce3469f1d16dedbc914.zip |
fix(npx)!: detect new `npx` versions and fail gracefully (#10452)
BREAKING CHANGE: the `npx` plugin used a feature of `npx` to check for
npm packages and run them if a command was not found. This feature was
removed in v7.0.0 and was deemed insecure. The `npx` plugin is now
officially deprecated and will be removed soon.
Fixes #10452
Diffstat (limited to 'plugins/osx')
-rw-r--r-- | plugins/osx/osx.plugin.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh index 9304e7f32..3b0935981 100644 --- a/plugins/osx/osx.plugin.zsh +++ b/plugins/osx/osx.plugin.zsh @@ -1,5 +1,5 @@ -print ${(%):-'%F{yellow}The `osx` plugin is deprecated and has been renamed to `macos`.'} -print ${(%):-'Please update your .zshrc to use the `%Bmacos%b` plugin instead.%f'} +print -u2 ${(%):-'%F{yellow}The `osx` plugin is deprecated and has been renamed to `macos`.'} +print -u2 ${(%):-'Please update your .zshrc to use the `%Bmacos%b` plugin instead.%f'} (( ${fpath[(Ie)$ZSH/plugins/macos]} )) || fpath=("$ZSH/plugins/macos" $fpath) source "$ZSH/plugins/macos/macos.plugin.zsh" |