Closed c10l closed 11 months ago
I can confirm that this is still an issue
$ kubie ctx
_zimfw_source_zimrc:source:3: no such file or directory: /tmp/.tmpyj7aAo/.zimrc
Failed to source /tmp/.tmpyj7aAo/.zimrc
_zimfw_source_zimrc:source:3: no such file or directory: /tmp/.tmpyj7aAo/.zimrc
Failed to source /tmp/.tmpyj7aAo/.zimrc
/home/seb/.zshrc:source:114: no such file or directory: /tmp/.tmpyj7aAo/.zim/init.zsh
/home/seb/.aliases:unalias:76: no such hash table element: gt
kubie
overrides the ZDOTDIR
variable with the temp path and zim looks for .zimrc
file in ${ZDOTDIR}/.zimrc
when the variable is defined.
Assuming your .zimrc
file is in $HOME
: you can add export ZIM_CONFIG_FILE=$HOME/.zimrc
to your .zshrc
This should lead to no errors from kubie.
Thanks, this works!
I've recently migrated my zsh config to use
zim
. Unfortunately, this brokekubie
because it expects to find certain files in known locations:I managed to work around those errors by setting
ZIM_HOME=/Users/c10l/.zim
but then something else broke as it tries to find.zimrc
under$HOME
, which is overridden at that point to the kubie temp dir:Suggestion: allow me to give a list of files and directories to copy to the temp dir when switching contexts. This way I can specify
.zimrc
and.zim/
which should make this work.