Skip to content

[shell] Support zim (a zsh framework) #1428

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

Merged
merged 1 commit into from
Aug 29, 2023
Merged

[shell] Support zim (a zsh framework) #1428

merged 1 commit into from
Aug 29, 2023

Conversation

savil
Copy link
Collaborator

@savil savil commented Aug 29, 2023

Summary

Zim is a framework for zsh. It relies on a .zimrc file for its settings.
If this .zimrc file is not present in ZDOTDIR/.zimrc, then users
get some ugly error messages (and zim itself doesn't work).

Devbox generates a temp-dir for the new devbox shell's configuration files
like .zshrc, or .bashrc, or fish.config.

For zsh:

  1. the ZDOTDIR is set to this temp dir.
  2. we already symlink some other files like .zprofile.
  3. In this PR, we also symlink the .zimrc.

Fixes #1426
Note: the task title asserts that the problem is starship. However, the cause
is that zim is not supported. For good measure, in my testing below I have
enabled starship and it works fine after the fix.

How was it tested?

setup:

  1. set zsh as the login shell
  2. install zim using the curl install command.

BEFORE:
devbox shell output would spout the error messages from #1426

AFTER:
devbox shell starts without any error messages.

Copy link
Collaborator Author

savil commented Aug 29, 2023

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@savil savil merged commit 9aa4750 into main Aug 29, 2023
@savil savil deleted the savil/zim branch August 29, 2023 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: starship prompt initialization goofed up
2 participants