-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,6 +83,7 @@ dropbox-deb | |
duf-deb | ||
dunst | ||
dust-bin | ||
easy-zsh-config-git | ||
eddie-ui-deb | ||
electronmail-deb | ||
electrum-git | ||
|
27 changes: 27 additions & 0 deletions
27
packages/easy-zsh-config-git/easy-zsh-config-git.pacscript
This file contains 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
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" | ||
} |