Skip to content

Commit

Permalink
alarmcn/bcachefs-tools-git: use a better way to install shell complet…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
Integral-Tech committed Dec 28, 2024
1 parent d9c31dc commit ad0f966
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions alarmcn/bcachefs-tools-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@ package() {
rm -rf "${pkgdir}/etc/"

# package completions
install -dm755 ${pkgdir}/usr/share/{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions}
cd "${pkgdir}/usr/bin/"
./bcachefs completions bash >"${pkgdir}/usr/share/bash-completion/completions/bcachefs"
./bcachefs completions fish >"${pkgdir}/usr/share/fish/vendor_completions.d/bcachefs.fish"
./bcachefs completions zsh >"${pkgdir}/usr/share/zsh/site-functions/_bcachefs"
./bcachefs completions bash | install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/bcachefs"
./bcachefs completions fish | install -Dm644 /dev/stdin "${pkgdir}/usr/share/fish/vendor_completions.d/bcachefs.fish"
./bcachefs completions zsh | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_bcachefs"
}

0 comments on commit ad0f966

Please sign in to comment.