Skip to content

Commit

Permalink
add: easy-zsh-config-git
Browse files Browse the repository at this point in the history
  • Loading branch information
Zahrun committed Oct 13, 2023
1 parent b99199e commit 17e919a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ dropbox-deb
duf-deb
dunst
dust-bin
easy-zsh-config-git
eddie-ui-deb
electronmail-deb
electrum-git
Expand Down
27 changes: 27 additions & 0 deletions packages/easy-zsh-config-git/easy-zsh-config-git.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name="easy-zsh-config-git"
pkgname="easy-zsh-config"
url="https://github.com/wszqkzqk/${pkgname}.git"
pkgver="0.6.2"
pacdeps=("oh-my-posh-git" "zsh-history-substring-search-git")
depends=("zsh" "zsh-syntax-highlighting" "zsh-autosuggestions")
breaks=("${pkgname}")
replace=("${pkgname}")
gives=("${pkgname}")
pkgdesc="A simple but fast and out of the box configuration of zsh powered by oh-my-posh and zsh plugins"
maintainer="Zahrun <[email protected]>"
pkgver() {
git ls-remote "${url}" refs/heads/master | cut -f1 | cut -c1-8
}

prepare() {
sed -i s:/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh:/usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh:g easy-zsh-config
sed -i s:/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh:/usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh:g easy-zsh-config
}

package() {
sudo install -Dm644 zshrc "${pkgdir}/etc/skel/.zshrc"
sudo install -Dm644 zshrc "${pkgdir}/etc/zsh/zshrc"
sudo install -Dm640 zshrc "${pkgdir}/root/.zshrc"
sudo install -Dm644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${name}/"
sudo install -Dm644 easy-zsh-config "${pkgdir}/usr/share/zsh/easy-zsh-config"
}

0 comments on commit 17e919a

Please sign in to comment.