Skip to content

Migration to zim#9

Open
Afostyrio wants to merge 2 commits into
instantOS:mainfrom
Afostyrio:main
Open

Migration to zim#9
Afostyrio wants to merge 2 commits into
instantOS:mainfrom
Afostyrio:main

Conversation

@Afostyrio

Copy link
Copy Markdown

I've adapted the previous functions to now use zim instead of antidote.

The previous version of InstantSHELL was dependent on antidote, this one has been adapted to use zim.
@paperbenni

Copy link
Copy Markdown
Member

Thank you so much for the contribution 😄

@paperbenni
paperbenni requested a review from Copilot September 7, 2025 06:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates the shell configuration from using antidote to zim as the plugin manager. The migration involves updating the configuration files, installation/uninstallation scripts, and documentation to reflect the change from antidote to zim.

  • Replaced antidote plugin manager references with zim throughout the codebase
  • Updated installation and uninstallation procedures to handle zim-specific files and directories
  • Modified plugin loading mechanism to use zim's approach instead of antidote's

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
zshrc Updates plugin installation function and sourcing mechanism for zim
zimrc Removes InstantOS plugin from zim configuration
instantshell.sh Replaces antidote commands with zim equivalents in install/uninstall/update operations
README.md Updates documentation to reference zim instead of antidote

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread zshrc
source "${ZIM_HOME}/init.zsh"
}

source "${ZIM_HOME}/init.zsh"

Copilot AI Sep 7, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The source "${ZIM_HOME}/init.zsh" command is executed outside the install_zim_plugins() function, but ZIM_HOME may not be set. This could cause the script to fail if ZIM_HOME is undefined. Consider setting a default value for ZIM_HOME or moving this line inside the function where the zim installation logic handles the variable.

Suggested change
source "${ZIM_HOME}/init.zsh"

Copilot uses AI. Check for mistakes.
Comment thread instantshell.sh
exit 1
fi
;;
"update")

Copilot AI Sep 7, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The update operation runs both zimfw update and zimfw upgrade sequentially. Consider clarifying the purpose of each command in a comment, as the distinction between 'update' and 'upgrade' in zim context may not be immediately clear to maintainers.

Suggested change
"update")
"update")
# Run both 'zimfw update' (to update plugins and themes) and 'zimfw upgrade' (to update the Zim framework itself).

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants