summarylogtreecommitdiffstats
path: root/forgit-git.install
diff options
context:
space:
mode:
authorsandroid2023-06-19 20:22:52 +0200
committersandroid2023-06-19 20:22:52 +0200
commit66303208b13a9812fccf34f0b55b4a8bffff08fc (patch)
treedef30ab5cef2048429adbb68c9643764ea68077f /forgit-git.install
parent1f1ec27d5e9a2698155c4c4f0a0f9280449b35ac (diff)
downloadaur-66303208b13a9812fccf34f0b55b4a8bffff08fc.tar.gz
* Add completions for bash & zsh
* Add/Update instructions which files to source * Add dependency git * Add conflicting package forgit * Updated maintainers
Diffstat (limited to 'forgit-git.install')
-rw-r--r--forgit-git.install16
1 files changed, 13 insertions, 3 deletions
diff --git a/forgit-git.install b/forgit-git.install
index 1d3f8a1ad8e1..7744503ccdaa 100644
--- a/forgit-git.install
+++ b/forgit-git.install
@@ -1,4 +1,14 @@
-post_install() {
- printf ":: Bash users will need to source the scripts under\n"
- printf ":: /usr/share/zsh/plugins/forgit.plugin.zsh to use this package.\n"
+post_install() {
+ # bash
+ printf '%b' "\033[1mBash\033[0m\n"
+ printf "To use this package source /usr/share/zsh/plugins/forgit-git/forgit.plugin.zsh\n"
+ printf "For tab completions source ~/.local/share/bash-completion/completions/git-forgit.bash afterwards\n\n"
+ # zsh
+ printf '%b' "\033[1mZsh\033[0m\n"
+ printf "To use this package source /usr/share/zsh/plugins/forgit-git/forgit.plugin.zsh\n"
+ printf "For tab completions source /usr/share/zsh/plugins/forgit-git/completions/git-forgit.zsh afterwards\n"
+}
+
+post_upgrade() {
+ post_install
}