Package Details: zsh-zim-git r682.84c59ed-1

Git Clone URL: https://aur.archlinux.org/zsh-zim-git.git (read-only, click to copy)
Package Base: zsh-zim-git
Description: ZIM - Zsh IMproved
Upstream URL: https://github.com/zimfw/zimfw
Keywords: improved plugin theme vim zim zsh
Licenses: MIT
Submitter: ishitatsuyuki
Maintainer: carbolymer (Rhinoceros)
Last Packager: carbolymer
Votes: 18
Popularity: 0.000000
First Submitted: 2015-12-28 02:13 (UTC)
Last Updated: 2024-10-10 07:25 (UTC)

Dependencies (4)

Required by (1)

Sources (5)

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=5a378e94d516c57d39629de545b78b0f020d86a4

I 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:

  1. Add a respective zmodule in /etc/zsh/zimrc
  2. Run as root: zimfw install && zsh

Latest Comments

1 2 3 4 5 6 .. 10 Next › Last »

Rhinoceros commented on 2024-06-28 12:16 (UTC)

Thanks @carbolymer. I've actually been following that issue, but I was a bit lost so haven't been commenting.

I went and checked my files against those in the backup array of this PKGBUILD, but they are essentially the same. I also just checked another system with the same config that is running an older zsh-zim-git r658.4200e6c-1. I can confirm that if I add things to ~/.zimrc, they are being sourced (e.g. echo foo > /tmp/bar). However this is not the case in my updated system.

Sorry, just to confirm, are you running the latest r671.6166fce-1, and do you see specific additions to ~/.zimrc also being sourced?

carbolymer commented on 2024-06-28 09:50 (UTC)

@Rhinoceros works on my machine™. I think there were some changes to zim config templates, I need to take a look what needs to be updated here. Can you check your config against: https://github.com/zimfw/zimfw/issues/368#issuecomment-2192291656

Rhinoceros commented on 2024-06-28 02:53 (UTC)

@carbolymer I'm not sure if my config is weird, but it seems like ~/.zimrc is not being sourced any more? Should I be sourcing that manually now? Where would you put things like zstyle ':zim:termtitle' format '%~'?

Rhinoceros commented on 2023-03-30 21:52 (UTC)

Thanks @carbolymer, much appreciated! Yes, not too sure what's happening there; no big deal though, I'll chase it up elsewhere. Package seems to build perfectly now!

carbolymer commented on 2023-03-30 13:38 (UTC)

@Rhinoceros I've fixed the patch, package should build now. I'm sorry, I cannot reproduce your errors, so I can't help you much here.

Rhinoceros commented on 2023-03-27 06:29 (UTC)

I never got around to fixing syntax highlighting, but I actually can't build this any more.

==> Starting package()...
Latest zimfw version is 1.11.3. You're using version 1.12.0-SNAPSHOT. Run zimfw upgrade to upgrade.
x /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/templates/.zimrc:12:environment: /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/modules/environment not found
x /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/templates/.zimrc:14:git: /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/modules/git not found
x /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/templates/.zimrc:16:input: /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/modules/input not found
x /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/templates/.zimrc:18:termtitle: /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/modules/termtitle not found
x /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/templates/.zimrc:20:utility: /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/modules/utility not found
x /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/templates/.zimrc:27:duration-info: /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/modules/duration-info not found
x /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/templates/.zimrc:29:git-info: /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/modules/git-info not found
x /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/templates/.zimrc:31:asciiship: /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/modules/asciiship not found
x /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/templates/.zimrc:38:zsh-completions: /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/modules/zsh-completions not found
x /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/templates/.zimrc:41:completion: /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/modules/completion not found
x /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/templates/.zimrc:49:zsh-syntax-highlighting: /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/modules/zsh-syntax-highlighting not found
x /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/templates/.zimrc:52:zsh-history-substring-search: /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/modules/zsh-history-substring-search not found
x /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/templates/.zimrc:54:zsh-autosuggestions: /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/modules/zsh-autosuggestions not found
Failed to source /build/zsh-zim-git/pkg/zsh-zim-git/usr/lib/zim/templates/.zimrc
==> ERROR: A failure occurred in package().

Rhinoceros commented on 2022-10-25 01:49 (UTC) (edited on 2022-10-25 01:56 (UTC) by Rhinoceros)

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.

Rhinoceros commented on 2022-10-24 21:58 (UTC)

@carbolymer Thanks for updating the package and thanks for the hint. I think it was maybe a issue with zsh-autosuggestions as well, but it seems to have spontaneously fixed itself.

carbolymer commented on 2022-10-18 17:28 (UTC)

@Rhinoceros it works for me just fine, so it must be something specific to your setup. Can you try in isolated environment? test.sh in this package starts fresh arch container with podman and installs zim, so you can test it there.

Rhinoceros commented on 2022-10-14 01:08 (UTC)

@carbolymer and others

Does anyone use the module zsh-syntax-highlighting? It's actually been broken for me for months now, possibly after the zsh update to 5.9 in May this year. I ignored it at the time, thinking it might be an upstream fix, but never got back to it.

Is it something we can/should fix in this package?