Skip to content

Commit

Permalink
add: easy-zsh-config-git (#4659)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zahrun authored Oct 13, 2023
1 parent b99199e commit 296e052
Show file tree
Hide file tree
Showing 2 changed files with 26 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
25 changes: 25 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,25 @@
name="easy-zsh-config-git"
pkgname="easy-zsh-config"
url="https://github.com/wszqkzqk/easy-zsh-config.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/zsh/zshrc-easy-zsh-config"
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 296e052

Please sign in to comment.