Last active
December 29, 2025 20:37
-
-
Save ericbn/d6b11516306f1673c0fb38f8abb10a94 to your computer and use it in GitHub Desktop.
zimfw AUR package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Copyright Arch Linux Contributors | |
| Permission to use, copy, modify, and/or distribute this software for | |
| any purpose with or without fee is hereby granted. | |
| THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL | |
| WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES | |
| OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE | |
| FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY | |
| DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN | |
| AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT | |
| OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Maintainer: Eric Nielsen <ericbn at proton dot me> | |
| pkgname=zimfw | |
| pkgver=1.20.0 | |
| pkgrel=1 | |
| pkgdesc='Zsh plugin manager' | |
| arch=('any') | |
| url='https://zimfw.sh' | |
| license=('MIT') | |
| depends=('zsh>=5.2') | |
| source=("$pkgname-$pkgver.zsh.gz::https://github.com/zimfw/zimfw/releases/download/v$pkgver/zimfw.zsh.gz") | |
| sha256sums=('b948ef89a2f6fe565197e0fa898046337168c78bfcbae43601baeb9cd51f7038') | |
| install=zimfw.install | |
| package() { | |
| cd "$srcdir" | |
| install -Dm0644 -T "$pkgname-$pkgver.zsh" "$pkgdir/usr/share/zimfw/zimfw.zsh" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| post_install() { | |
| cat <<'EOF' | |
| To finish installing zimfw, add the following to your ~/.zshrc: | |
| ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim | |
| # Install missing modules and update ${ZIM_HOME}/init.zsh if missing or outdated. | |
| if [[ ! ${ZIM_HOME}/init.zsh -nt ${ZIM_CONFIG_FILE:-${ZDOTDIR:-${HOME}}/.zimrc} ]]; then | |
| source /usr/share/zimfw/zimfw.zsh init | |
| fi | |
| # Initialize modules. | |
| source ${ZIM_HOME}/init.zsh | |
| EOF | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment