diff options
| author | KunoiSayami <[email protected]> | 2021-11-20 23:46:44 +0800 |
|---|---|---|
| committer | KunoiSayami <[email protected]> | 2021-11-20 23:46:44 +0800 |
| commit | 6e841289082baefb17bc198d8f1a0b055b8239bd (patch) | |
| tree | 0ccd921ec8018c68745d8389d915285098e70bd8 | |
| parent | 6b57801ca3eabd9c2d7862d789d5b8dca35b3e21 (diff) | |
feat(add-pkg): Add zsh-ssr-theme
Signed-off-by: KunoiSayami <[email protected]>
| -rw-r--r-- | repo/zsh-ssr-theme/PKGBUILD | 30 | ||||
| -rw-r--r-- | repo/zsh-ssr-theme/zsh-ssr-theme.install | 18 |
2 files changed, 48 insertions, 0 deletions
diff --git a/repo/zsh-ssr-theme/PKGBUILD b/repo/zsh-ssr-theme/PKGBUILD new file mode 100644 index 0000000..3ca7295 --- /dev/null +++ b/repo/zsh-ssr-theme/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: KunoiSayami <[email protected]> + +pkgname=zsh-ssr-theme +pkgver=0.0.1 +pkgrel=1 +pkgdesc="This package provides ssr's zsh theme" +arch=('any') +url=https://github.com/KunoiSayami/dotfiles/ +source=( + ssr-zshrc.zsh::https://raw.githubusercontent.com/KunoiSayami/dotfiles/4a8c1ae3b9bb07dff075ac369bf9f90d28861263/.zshrc + https://gist.githubusercontent.com/KunoiSayami/6e4177ef13a4f8df0cbf3731b68e013c/raw/8ff98306c08ef9133f5125b5f9a8b67698a66a04/p10k.zsh) +sha512sums=( + '0abc1a1b9e886a21e26c01df9f909b3e6fc7caf9b73713ca0d0547e8c37e8d665f5546f5049fa2e2d459675ae73d9362fbbed725318ad9c2851dbb7141472d4e' + 'bc3624198d6ac743588edfd17df553a87badb13c78014a47eb67c14a4e4010d32dc6981f5fbff33e60cc1efe13e5cbeca8cd4d8852adcf47090a5d14857ed45e') +makedepends=() +depends=('zsh' 'zsh-completions' 'zsh-autosuggestions' 'zsh-theme-powerlevel10k') +optdepends=( + 'zsh-syntax-highlighting: Fish shell like syntax highlighting for Zsh' +) +provides=('zsh-ssr-theme') +install=$pkgname.install + +package() { + sed -i 's|~/.config/zsh/p10k|/etc/zsh/ssr/p10k|' ssr-zshrc.zsh + + install -dm755 "$pkgdir"/etc/zsh/ssr/ + + install -m644 ssr-zshrc.zsh "$pkgdir"/etc/zsh/ssr/ + install -m644 p10k.zsh "$pkgdir"/etc/zsh/ssr/ +}
\ No newline at end of file diff --git a/repo/zsh-ssr-theme/zsh-ssr-theme.install b/repo/zsh-ssr-theme/zsh-ssr-theme.install new file mode 100644 index 0000000..3e1c210 --- /dev/null +++ b/repo/zsh-ssr-theme/zsh-ssr-theme.install @@ -0,0 +1,18 @@ +# From: https://aur.archlinux.org/cgit/aur.git/tree/google-chrome.install?h=google-chrome +# Colored makepkg-like functions +msg_blue() { + printf "${blue}==>${bold} $1${all_off}\n" +} + +note() { + printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n" +} + +all_off="$(tput sgr0)" +bold="${all_off}$(tput bold)" +blue="${bold}$(tput setaf 4)" +yellow="${bold}$(tput setaf 3)" + +post_install() { + note "Run \`echo \"[ -r /etc/zsh/ssr/ssr-zshrc.zsh ] && source /etc/zsh/ssr/ssr-zshrc.zsh\" > ~/.zshrc\` to joy it" +} |
