Actually sorry @carbolymer I think I spoke too soon. I tried test.sh
, but that didn't work for me.
$ ./test.sh
...
==> Finished making: zsh-zim-git r628.e54958b-1 (Tue 25 Oct 2022 12:23:29 PM)
...
STEP 8/10: RUN chown -R work:work /home/work/
chown: changing ownership of '/home/work/.bash_logout': Invalid argument
chown: changing ownership of '/home/work/zsh-zim-git-r628.e54958b-1-any.pkg.tar': Invalid argument
chown: changing ownership of '/home/work/zsh-zim-git-r628.e54958b-1-any.pkg.tar.zst': Invalid argument
chown: changing ownership of '/home/work/.zshrc': Invalid argument
chown: changing ownership of '/home/work/': Invalid argument
Error: building at STEP "RUN chown -R work:work /home/work/": while running runtime: exit status 1
I can describe the problem as follows though. In /etc/zsh/zimrc
I have the following:
zmodule zsh-users/zsh-syntax-highlighting
zmodule zsh-users/zsh-autosuggestions
But syntax highlighting doesn't work properly for me in the following case
$ echo foobar<Enter> # to get this into history
$ ec
Here echo foobar
is auto-suggested. ho foobar
has grey syntax highlighting as expected. If I use the keys for up-line-or-history
or history-beginning-search-backward
, then echo
turns green and foobar
turns black as expected. However, if I instead press the right arrow, forward-word
, or End
, then echo
turns green as expected, but foobar
remains grey. (The latter keystrokes are all defined as ZSH_AUTOSUGGEST_ACCEPT_WIDGETS
or ZSH_AUTOSUGGEST_PARTIAL_ACCEPT_WIDGETS
in ~/.zshrc
.)
OTOH I have a user-level zim install on a server with the same settings that seems to work perfectly.
EDIT: I also went through /usr/lib/zim/modules
comparing them to the server, and they seem to be the same versions.
Pinned Comments
carbolymer commented on 2021-01-11 21:41 (UTC) (edited on 2021-01-22 07:46 (UTC) by carbolymer)
Ugh, it was a PITA to create this package. Please note that errors are silenced, so if you have any issues with zim, remove
&>/dev/null
from your/etc/zshrc
- https://aur.archlinux.org/cgit/aur.git/tree/zshrc?h=zsh-zim-git&id=5a378e94d516c57d39629de545b78b0f020d86a4I had to do it this way:
$ZIM_HOME
is only writable by root and zim constantly tries to update & recompile itself (=write to$ZIM_HOME
), which results in permission errors when starting zsh as a normal user.If you want to add/remove a module:
zmodule
in/etc/zsh/zimrc
zimfw install && zsh