Add omarchy-fish and omarchy-zsh

This commit is contained in:
Ryan Hughes committed 2025-11-03 17:20:16 -05:00
1 parent 43b971a1e9
commit 7c42e6d930
4 files changed
+117

No files matched your search

+42
View File
@@ -0,0 +1,42 @@
# Maintainer: Ryan Hughes <ryan@omarchy.org>
pkgname=omarchy-zsh
pkgver=1.0.0
pkgrel=1
pkgdesc="Omarchy shell configuration for Zsh"
arch=('any')
url="https://github.com/omacom-io/omarchy-zsh"
license=('MIT')
depends=('zsh' 'eza' 'mise' 'zoxide' 'starship' 'fzf' 'fd' 'bat')
install=omarchy-zsh.install
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('SKIP')
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Install omarchy-zsh config files to /usr/share/omarchy-zsh
install -dm755 "${pkgdir}/usr/share/${pkgname}/conf.d"
install -dm755 "${pkgdir}/usr/share/${pkgname}/functions"
# Install config snippets
install -Dm644 conf.d/envs.zsh "${pkgdir}/usr/share/${pkgname}/conf.d/"
install -Dm644 conf.d/init.zsh "${pkgdir}/usr/share/${pkgname}/conf.d/"
install -Dm644 conf.d/options.zsh "${pkgdir}/usr/share/${pkgname}/conf.d/"
# Install function definitions
install -Dm644 functions/aliases.zsh "${pkgdir}/usr/share/${pkgname}/functions/"
install -Dm644 functions/functions.zsh "${pkgdir}/usr/share/${pkgname}/functions/"
# Install zshrc and bashrc templates
cp templates/zshrc "${pkgdir}/usr/share/${pkgname}/zshrc"
cp templates/bashrc "${pkgdir}/usr/share/${pkgname}/bashrc"
# Install documentation
install -dm755 "${pkgdir}/usr/share/${pkgname}"
cp LICENSE "${pkgdir}/usr/share/${pkgname}/LICENSE"
cp README.md "${pkgdir}/usr/share/${pkgname}/README.md"
# Install setup script
install -Dm755 bin/omarchy-setup-zsh "${pkgdir}/usr/bin/omarchy-setup-zsh"
}
+14
View File
@@ -0,0 +1,14 @@
post_install() {
echo "==> omarchy-zsh installed successfully!"
echo ""
echo "==> To run zsh from bash:"
echo " zsh"
echo ""
echo "==> To set as default shell:"
echo " omarchy-setup-zsh"
}
post_remove() {
echo "==> omarchy-zsh has been removed"
echo "==> To restore bash, copy a backup to ~/.bashrc"
}