Skip to content

Commit 1d11c3c

Browse files
MauseTomJo2000
authored andcommitted
fix(main/git-extras): autoinstall completions
1 parent af4e55e commit 1d11c3c

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

packages/git-extras/build.sh

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Little git extras."
33
TERMUX_PKG_LICENSE="MIT"
44
TERMUX_PKG_MAINTAINER="@termux"
55
TERMUX_PKG_VERSION="7.4.0"
6-
TERMUX_PKG_REVISION=1
6+
TERMUX_PKG_REVISION=2
77
TERMUX_PKG_SRCURL=https://github.com/tj/git-extras/archive/${TERMUX_PKG_VERSION}.tar.gz
88
TERMUX_PKG_SHA256=aaab3bab18709ec6825a875961e18a00e0c7d8214c39d6e3a63aeb99fa11c56e
99
TERMUX_PKG_DEPENDS="bash, git, util-linux, gawk, findutils, ncurses-utils"
@@ -23,15 +23,7 @@ termux_step_make() {
2323
}
2424

2525
termux_step_post_make_install() {
26-
install -Dm644 etc/git-extras-completion.zsh "$TERMUX_PREFIX"/share/git-extras/completion.zsh
27-
install -Dm644 etc/git-extras.fish "$TERMUX_PREFIX"/share/git-extras/completion.fish
28-
}
29-
30-
termux_step_create_debscripts() {
31-
{
32-
echo "echo \"If you are a zsh user, you may want to 'source ${TERMUX_PREFIX}/share/git-extras/completion.zsh'\" \\"
33-
echo " \"and put this line into ~/.zshrc to enable zsh completion\""
34-
echo "echo \"If you are a fish user, you may want to copy or link '${TERMUX_PREFIX}/share/git-extras/completion.fish'\" \\"
35-
echo " \"to '~/.config/fish/completions/'\""
36-
} >./postinst
26+
install -Dm644 etc/bash_completion.sh "${TERMUX_PREFIX}/share/bash-completion/completions/git-extras"
27+
install -Dm644 etc/git-extras-completion.zsh "${TERMUX_PREFIX}/share/zsh/site-functions/_git-extras"
28+
install -Dm644 etc/git-extras.fish "$TERMUX_PREFIX"/share/fish/vendor_completions.d/git-extras.fish
3729
}

0 commit comments

Comments
 (0)