mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-23 22:16:48 +00:00
feat(installers): install shell completions and man pages (bat, fd, lsd, rg, watchexec, zoxide)
Install bash/fish/zsh completions from release archive into pkg_src_dir/share/, and man pages into pkg_src_dir/share/man/man1/.
This commit is contained in:
@@ -25,6 +25,12 @@ __init_gh() {
|
||||
|
||||
# mv ./gh-*/gh ~/.local/opt/gh-v0.99.9/bin/gh
|
||||
mv ./"$pkg_cmd_name"*/bin/gh "$pkg_src_cmd"
|
||||
|
||||
# install man pages if present
|
||||
if test -d ./"$pkg_cmd_name"*/share/man; then
|
||||
mkdir -p "$pkg_src_dir/share"
|
||||
mv ./"$pkg_cmd_name"*/share/man "$pkg_src_dir/share/man"
|
||||
fi
|
||||
}
|
||||
|
||||
# pkg_get_current_version is recommended, but (soon) not required
|
||||
|
||||
Reference in New Issue
Block a user