Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New way to add plugins #250

Merged
merged 4 commits into from
Mar 1, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
The new plugins will be moved to .zshrc.add-plugins.d/0000-transferre…
…d-plugins

Signed-off-by: neiromaster <[email protected]>
  • Loading branch information
neiromaster committed Feb 28, 2023
commit 3fb066b8a5375f71d85d2e5be55380e1f6ac4403
14 changes: 7 additions & 7 deletions zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ _zqs-purge-setting() {

# Convert the old settings files into new style settings
function _zqs-update-stale-settings-files() {
# Convert .zqs-additional-plugins to new format
neiromaster marked this conversation as resolved.
Show resolved Hide resolved
if [[ -f ~/.zqs-additional-plugins ]]; then
mkdir -p "~/.zshrc.add-plugins.d"
sed -e 's/^./zgenom load &/' ~/.zqs-additional-plugins >> ~/.zshrc.add-plugins.d/0000-transferred-plugins
rm -f ~/.zqs-additional-plugins
echo "Plugins from .zqs-additional-plugins were moved to .zshrc.add-plugins.d/0000-transferred-plugins with a format change"
fi
if [[ -f ~/.zsh-quickstart-use-bullet-train ]]; then
_zqs-set-setting bullet-train true
rm -f ~/.zsh-quickstart-use-bullet-train
Expand Down Expand Up @@ -356,13 +363,6 @@ fi
mkdir -p ~/.zshrc.pre-plugins.d
load-shell-fragments ~/.zshrc.pre-plugins.d

# Convert .zqs-additional-plugins to new format
if [[ -f ~/.zqs-additional-plugins ]]; then
sed -e 's/^./zgenom load &/' ~/.zqs-additional-plugins > ~/.zqs-add-plugins
rm ~/.zqs-additional-plugins
echo "Plugins from .zqs-additional-plugins were moved to .zshrc.add-plugins with a format change"
fi

# macOS doesn't have a python by default. This makes the omz python and
# zsh-completion-generator plugins sad, so if there isn't a python, alias
# it to python3
Expand Down