1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 05:40:08 +00:00

fix(osx): deprecate osx plugin without symlink (#10428)

Fixes #10428
This commit is contained in:
Marc Cornellà 2021-11-17 10:53:17 +01:00
parent 2b379ec42c
commit b60b3f1842
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B
5 changed files with 8 additions and 8 deletions

View file

@ -1,9 +1,3 @@
# Check if 'osx' is still in the plugins list and prompt to change to 'macos'
if [[ -n "${plugins[(r)osx]}" ]]; then
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"}
fi
# Open the current directory in a Finder window
alias ofd='open_command $PWD'

View file

@ -1 +0,0 @@
macos.plugin.zsh

View file

@ -1 +0,0 @@
macos

3
plugins/osx/README.md Normal file
View file

@ -0,0 +1,3 @@
# osx plugin
**Deprecated: use the [`macos`](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/macos) plugin instead.**

View file

@ -0,0 +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'}
(( ${fpath[(Ie)$ZSH/plugins/macos]} )) || fpath=("$ZSH/plugins/macos" $fpath)
source "$ZSH/plugins/macos/macos.plugin.zsh"