omarchy
This commit is contained in:
58 files changed
+174
No files matched your search
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"source": "local"
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
# Maintainer: Ryan Hughes <ryan@omarchy.org>
|
||||
|
||||
pkgname=omarchy-zsh
|
||||
pkgver=1.4.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' 'zsh-autosuggestions' 'zsh-syntax-highlighting')
|
||||
options=('!debug')
|
||||
install=omarchy-zsh.install
|
||||
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
|
||||
"omadots.tar.gz::https://github.com/omacom-io/omadots/archive/refs/heads/master.tar.gz")
|
||||
sha256sums=('45294dc2cdebfc10086518d39276720bb3f55e74728ae31819a3ea61d998e8f5'
|
||||
'SKIP')
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
|
||||
# Install shared shell config from omadots (aliases, functions, envs, inits, inputrc)
|
||||
install -dm755 "${pkgdir}/usr/share/${pkgname}/shell"
|
||||
cp "${srcdir}/omadots-master/config/shell/"* "${pkgdir}/usr/share/${pkgname}/shell/"
|
||||
|
||||
# Rewrite paths to source from installed package location instead of user config
|
||||
sed -i 's|\$HOME/\.config/shell|/usr/share/omarchy-zsh/shell|g' "${pkgdir}/usr/share/${pkgname}/shell/all"
|
||||
|
||||
# Install zsh-specific zoptions from omarchy-zsh
|
||||
cp shell/zoptions "${pkgdir}/usr/share/${pkgname}/shell/"
|
||||
|
||||
# Install zsh completions to the standard site-functions dir so they
|
||||
# autoload via the default fpath. compinit is invoked from zoptions.
|
||||
install -dm755 "${pkgdir}/usr/share/zsh/site-functions"
|
||||
cp shell/completions/* "${pkgdir}/usr/share/zsh/site-functions/"
|
||||
|
||||
# Install templates and documentation
|
||||
install -dm755 "${pkgdir}/usr/share/${pkgname}"
|
||||
cp -r templates LICENSE README.md "${pkgdir}/usr/share/${pkgname}/"
|
||||
|
||||
# Install setup script
|
||||
install -Dm755 bin/omarchy-setup-zsh "${pkgdir}/usr/bin/omarchy-setup-zsh"
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
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_upgrade() {
|
||||
echo "==> Run omarchy-setup-zsh for new changes to take effect"
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
echo "==> omarchy-zsh has been removed"
|
||||
echo "==> To restore bash, copy a backup to ~/.bashrc"
|
||||
}
|
||||
Reference in new issue
Block a user