Compare commits

..

1 Commits

Author SHA1 Message Date
AJ ONeal
b209bfe46f 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/.
2026-05-14 15:26:50 -06:00
128 changed files with 146 additions and 158 deletions

View File

@@ -1,3 +0,0 @@
# Example releases.conf — uses ripgrep as a sample project.
# Copy this file into your package directory and adjust.
github_releases = BurntSushi/ripgrep

View File

@@ -1,2 +0,0 @@
github_sources = BeyondCodeBootcamp/aliasman
git_url = https://github.com/BeyondCodeBootcamp/aliasman.git

View File

@@ -1 +0,0 @@
github_releases = mholt/archiver

View File

@@ -1 +0,0 @@
github_releases = wez/atomicparsley

View File

@@ -1 +0,0 @@
github_releases = wallix/awless

View File

@@ -28,6 +28,22 @@ __init_bat() {
# chmod a+x ~/.local/opt/bat-v0.15.4/bin/bat
chmod a+x "$pkg_src_cmd"
# install completions if present (autocomplete/)
if test -d ./bat-*/autocomplete; then
mkdir -p "$pkg_src_dir/share/bash-completion/completions"
mkdir -p "$pkg_src_dir/share/fish/vendor_completions.d"
mkdir -p "$pkg_src_dir/share/zsh/site-functions"
mv ./bat-*/autocomplete/bat.bash "$pkg_src_dir/share/bash-completion/completions/bat" 2>/dev/null || true
mv ./bat-*/autocomplete/bat.fish "$pkg_src_dir/share/fish/vendor_completions.d/bat.fish" 2>/dev/null || true
mv ./bat-*/autocomplete/bat.zsh "$pkg_src_dir/share/zsh/site-functions/_bat" 2>/dev/null || true
fi
# install man page if present
if test -f ./bat-*/bat.1; then
mkdir -p "$pkg_src_dir/share/man/man1"
mv ./bat-*/bat.1 "$pkg_src_dir/share/man/man1/bat.1"
fi
if ! [ -e ~/.config/bat/config ]; then
mkdir -p ~/.config/bat/
touch ~/.config/bat/config

View File

@@ -1 +0,0 @@
github_releases = sharkdp/bat

View File

@@ -1,5 +0,0 @@
github_releases = oven-sh/bun
tag_prefix = bun-
default_x86_64 = x86_64_v3
x86_64_v2 = baseline
variants = profile

View File

@@ -1 +0,0 @@
github_releases = caddyserver/caddy

View File

@@ -1 +0,0 @@
source = chromedist

View File

@@ -1 +0,0 @@
github_releases = cilium/cilium-cli

View File

@@ -1 +0,0 @@
github_releases = Kitware/CMake

View File

@@ -1 +0,0 @@
github_releases = kivikakk/comrak

View File

@@ -1 +0,0 @@
github_releases = sstadick/crabz

View File

@@ -1 +0,0 @@
github_releases = rs/curlie

View File

@@ -1 +0,0 @@
github_releases = dashpay/dash

View File

@@ -1 +0,0 @@
alias_of = dashcore

View File

@@ -1 +0,0 @@
github_releases = dashhive/dashmsg

View File

@@ -1 +0,0 @@
github_releases = dandavison/delta

View File

@@ -1 +0,0 @@
github_releases = denoland/deno

View File

@@ -1 +0,0 @@
github_releases = dotenv-linter/dotenv-linter

View File

@@ -1 +0,0 @@
github_releases = therootcompany/dotenv

View File

@@ -1,2 +0,0 @@
github_sources = BeyondCodeBootcamp/DuckDNS.sh
git_url = https://github.com/BeyondCodeBootcamp/DuckDNS.sh.git

View File

@@ -27,6 +27,22 @@ __init_fd() {
# chmod a+x "$HOME/.local/opt/fd-v8.1.1/bin/fd"
chmod a+x "$pkg_src_cmd"
# install completions if present (autocomplete/{fd.bash,fd.fish,_fd})
if test -d ./fd-*/autocomplete; then
mkdir -p "$pkg_src_dir/share/bash-completion/completions"
mkdir -p "$pkg_src_dir/share/fish/vendor_completions.d"
mkdir -p "$pkg_src_dir/share/zsh/site-functions"
mv ./fd-*/autocomplete/fd.bash "$pkg_src_dir/share/bash-completion/completions/fd" 2>/dev/null || true
mv ./fd-*/autocomplete/fd.fish "$pkg_src_dir/share/fish/vendor_completions.d/fd.fish" 2>/dev/null || true
mv ./fd-*/autocomplete/_fd "$pkg_src_dir/share/zsh/site-functions/_fd" 2>/dev/null || true
fi
# install man page if present
if test -f ./fd-*/fd.1; then
mkdir -p "$pkg_src_dir/share/man/man1"
mv ./fd-*/fd.1 "$pkg_src_dir/share/man/man1/fd.1"
fi
}
}

View File

@@ -1 +0,0 @@
github_releases = sharkdp/fd

View File

@@ -1,4 +0,0 @@
source = ffmpegdist
github_releases = eugeneware/ffmpeg-static
asset_filter = ffmpeg
version_prefix = b

View File

@@ -1 +0,0 @@
github_releases = ffuf/ffuf

View File

@@ -1,2 +0,0 @@
github_releases = fish-shell/fish-shell
exclude = bundledpcre fish-static OpenBeta

View File

@@ -1 +0,0 @@
source = flutterdist

View File

@@ -1 +0,0 @@
github_releases = junegunn/fzf

View File

@@ -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

View File

@@ -1 +0,0 @@
github_releases = cli/cli

View File

@@ -1,4 +0,0 @@
github_releases = git-for-windows/git
asset_filter = MinGit
exclude = busybox
variants = installer

View File

@@ -1 +0,0 @@
github_releases = therootcompany/gitdeploy

View File

@@ -1,2 +0,0 @@
github_releases = go-gitea/gitea
exclude = -src- -docs-

View File

@@ -1 +0,0 @@
alias_of = gpg

View File

@@ -1 +0,0 @@
source = golang

View File

@@ -1 +0,0 @@
alias_of = go

View File

@@ -25,6 +25,23 @@ __init_goreleaser() {
# mv ./goreleaser-*/goreleaser ~/.local/opt/goreleaser-v1.21.2/bin/goreleaser
mv ./goreleaser "$pkg_src_cmd"
# install completions if present (completions/{goreleaser.bash,.fish,.zsh})
if test -d ./completions; then
mkdir -p "$pkg_src_dir/share/bash-completion/completions"
mkdir -p "$pkg_src_dir/share/fish/vendor_completions.d"
mkdir -p "$pkg_src_dir/share/zsh/site-functions"
mv ./completions/goreleaser.bash "$pkg_src_dir/share/bash-completion/completions/goreleaser" 2>/dev/null || true
mv ./completions/goreleaser.fish "$pkg_src_dir/share/fish/vendor_completions.d/goreleaser.fish" 2>/dev/null || true
mv ./completions/goreleaser.zsh "$pkg_src_dir/share/zsh/site-functions/_goreleaser" 2>/dev/null || true
fi
# install man page if present (manpages/goreleaser.1.gz)
if test -d ./manpages; then
mkdir -p "$pkg_src_dir/share/man/man1"
mv ./manpages/*.1.gz "$pkg_src_dir/share/man/man1/" 2>/dev/null || true
mv ./manpages/*.1 "$pkg_src_dir/share/man/man1/" 2>/dev/null || true
fi
}
# pkg_get_current_version is recommended, but (soon) not required

View File

@@ -1 +0,0 @@
github_releases = goreleaser/goreleaser

View File

@@ -1 +0,0 @@
source = gpgdist

View File

@@ -1 +0,0 @@
github_releases = creedasaurus/gprox

View File

@@ -1 +0,0 @@
github_releases = anchore/grype

View File

@@ -1 +0,0 @@
github_releases = sharkdp/hexyl

View File

@@ -1,3 +0,0 @@
github_releases = gohugoio/hugo
asset_filter = extended
exclude = Linux-64bit

View File

@@ -1,2 +0,0 @@
github_releases = gohugoio/hugo
exclude = extended Linux-64bit

View File

@@ -1 +0,0 @@
alias_of = iterm2

View File

@@ -1 +0,0 @@
source = iterm2dist

View File

@@ -1,2 +0,0 @@
github_releases = stedolan/jq
version_prefixes = jq-

View File

@@ -1 +0,0 @@
source = juliadist

View File

@@ -1 +0,0 @@
github_releases = derailed/k9s

View File

@@ -1 +0,0 @@
github_releases = therootcompany/keypairs

View File

@@ -1 +0,0 @@
github_releases = kubernetes-sigs/kind

View File

@@ -1 +0,0 @@
github_releases = cococonscious/koji

View File

@@ -1,2 +0,0 @@
github_releases = ahmetb/kubectx
asset_filter = kubectx

View File

@@ -1,2 +0,0 @@
github_releases = ahmetb/kubectx
asset_filter = kubens

View File

@@ -1 +0,0 @@
github_releases = gokcehan/lf

View File

@@ -25,6 +25,22 @@ __init_lsd() {
# mv ./lsd-*/lsd ~/.local/opt/lsd-v0.17.0/bin/lsd
mv ./lsd-*/lsd "$pkg_src_cmd"
# install completions if present (autocomplete/{_lsd,lsd.fish,lsd.bash-completion})
if test -d ./lsd-*/autocomplete; then
mkdir -p "$pkg_src_dir/share/bash-completion/completions"
mkdir -p "$pkg_src_dir/share/fish/vendor_completions.d"
mkdir -p "$pkg_src_dir/share/zsh/site-functions"
mv ./lsd-*/autocomplete/lsd.bash-completion "$pkg_src_dir/share/bash-completion/completions/lsd" 2>/dev/null || true
mv ./lsd-*/autocomplete/lsd.fish "$pkg_src_dir/share/fish/vendor_completions.d/lsd.fish" 2>/dev/null || true
mv ./lsd-*/autocomplete/_lsd "$pkg_src_dir/share/zsh/site-functions/_lsd" 2>/dev/null || true
fi
# install man page if present
if test -f ./lsd-*/lsd.1; then
mkdir -p "$pkg_src_dir/share/man/man1"
mv ./lsd-*/lsd.1 "$pkg_src_dir/share/man/man1/lsd.1"
fi
}
# pkg_get_current_version is recommended, but (soon) not required

View File

@@ -1 +0,0 @@
github_releases = lsd-rs/lsd

View File

@@ -1,2 +0,0 @@
source = mariadbdist
asset_filter = galera

View File

@@ -1 +0,0 @@
alias_of = mariadb

View File

@@ -1,2 +0,0 @@
source = mariadbdist
exclude = galera

View File

@@ -1 +0,0 @@
alias_of = mariadb

View File

@@ -1,2 +0,0 @@
github_releases = therootcompany/golib
tag_prefix = tools/monorel/

View File

@@ -1 +0,0 @@
github_releases = mutagen-io/mutagen

View File

@@ -1,3 +0,0 @@
source = nodedist
url = https://nodejs.org/download/release
unofficial_url = https://unofficial-builds.nodejs.org/download/release

View File

@@ -1,2 +0,0 @@
github_releases = jmorganca/ollama
variants = rocm jetpack5 jetpack6

View File

@@ -1 +0,0 @@
github_releases = emdneto/otsgo

View File

@@ -25,6 +25,12 @@ __init_pandoc() {
# mv ./pandoc-*/pandoc ~/.local/opt/pandoc-v2.10.1/bin/pandoc
mv ./pandoc-*/bin/pandoc "$pkg_src_cmd"
# install man pages if present (share/man/man1/pandoc*.1.gz)
if test -d ./pandoc-*/share/man; then
mkdir -p "$pkg_src_dir/share"
mv ./pandoc-*/share/man "$pkg_src_dir/share/man"
fi
}
# pkg_get_current_version is recommended, but (soon) not required

View File

@@ -1 +0,0 @@
github_releases = jgm/pandoc

View File

@@ -1,2 +0,0 @@
gitea_releases = https://git.rootprojects.org/root/pathman
exclude = armv8

View File

@@ -1,2 +1 @@
git_url = https://github.com/bnnanet/pg-essentials.git
os = posix_2017

View File

@@ -1,2 +0,0 @@
github_releases = bnnanet/postgresql-releases
asset_filter = postgres

View File

@@ -1 +0,0 @@
alias_of = psql

View File

@@ -1,2 +0,0 @@
github_releases = bnnanet/postgresql-releases
asset_filter = postgres

View File

@@ -1 +0,0 @@
alias_of = psql

View File

@@ -1 +0,0 @@
alias_of = postgres

View File

@@ -1 +0,0 @@
alias_of = pwsh

View File

@@ -1,2 +0,0 @@
github_releases = bnnanet/postgresql-releases
asset_filter = psql

View File

@@ -1,2 +0,0 @@
github_releases = powershell/powershell
variants = fxdependent fxdependentWinDesktop

View File

@@ -1 +0,0 @@
github_releases = rclone/rclone

View File

@@ -26,6 +26,22 @@ __init_rg() {
# mv ./ripgrep-*/rg ~/.local/opt/rg-v12.1.1/bin/rg
mv ./ripgrep-*/rg "$pkg_src_cmd"
# install completions if present (complete/_rg, complete/rg.bash, complete/rg.fish)
if test -d ./ripgrep-*/complete; then
mkdir -p "$pkg_src_dir/share/bash-completion/completions"
mkdir -p "$pkg_src_dir/share/fish/vendor_completions.d"
mkdir -p "$pkg_src_dir/share/zsh/site-functions"
mv ./ripgrep-*/complete/rg.bash "$pkg_src_dir/share/bash-completion/completions/rg" 2>/dev/null || true
mv ./ripgrep-*/complete/rg.fish "$pkg_src_dir/share/fish/vendor_completions.d/rg.fish" 2>/dev/null || true
mv ./ripgrep-*/complete/_rg "$pkg_src_dir/share/zsh/site-functions/_rg" 2>/dev/null || true
fi
# install man page if present
if test -f ./ripgrep-*/doc/rg.1; then
mkdir -p "$pkg_src_dir/share/man/man1"
mv ./ripgrep-*/doc/rg.1 "$pkg_src_dir/share/man/man1/rg.1"
fi
if ! [ -e ~/.ripgreprc ]; then
touch ~/.ripgreprc
fi

View File

@@ -1 +0,0 @@
github_releases = BurntSushi/ripgrep

View File

@@ -1 +0,0 @@
alias_of = rg

View File

@@ -1 +0,0 @@
github_releases = therootcompany/runzip

View File

@@ -1 +0,0 @@
github_releases = sass/dart-sass

View File

@@ -1 +0,0 @@
github_releases = therootcompany/sclient

View File

@@ -29,9 +29,21 @@ __init_sd() {
# ~/.local/opt/sd-v0.99.9/bin
mkdir -p "$(dirname "$pkg_src_cmd")"
mv sd-*/sd "$pkg_src_cmd"
# install completions if present (completions/{sd.bash,sd.fish,_sd})
if test -d sd-*/completions; then
mkdir -p "$pkg_src_dir/share/bash-completion/completions"
mkdir -p "$pkg_src_dir/share/fish/vendor_completions.d"
mkdir -p "$pkg_src_dir/share/zsh/site-functions"
mv sd-*/completions/sd.bash "$pkg_src_dir/share/bash-completion/completions/sd" 2>/dev/null || true
mv sd-*/completions/sd.fish "$pkg_src_dir/share/fish/vendor_completions.d/sd.fish" 2>/dev/null || true
mv sd-*/completions/_sd "$pkg_src_dir/share/zsh/site-functions/_sd" 2>/dev/null || true
fi
# install man page if present
if test -f sd-*/sd.1; then
mkdir -p "$pkg_src_dir/share/man/man1"
mv sd-*/sd.1 "$pkg_src_dir/share/man/man1"
mv sd-*/sd.1 "$pkg_src_dir/share/man/man1/sd.1"
fi
elif test -d sd-*/bin; then
mv sd-* "$pkg_src_dir"

View File

@@ -1 +0,0 @@
github_releases = chmln/sd

View File

@@ -1,2 +0,0 @@
source = servicemandist
git_url = https://github.com/bnnanet/serviceman.git

View File

@@ -1 +0,0 @@
github_releases = koalaman/shellcheck

View File

@@ -1 +0,0 @@
github_releases = mvdan/sh

View File

@@ -1 +0,0 @@
github_releases = sqlc-dev/sqlc

View File

@@ -1 +0,0 @@
github_releases = nalgeon/sqlpkg-cli

View File

@@ -70,7 +70,7 @@ main() {
echo ""
echo " 'ssh-adduser' no longer checks or hardens /etc/ssh/sshd_config"
echo ""
echo " Run 'sshd-prohibit-password' to secure /etc/ssh/sshd_config"
echo " Run 'sshd-probihit-password' to secure /etc/ssh/sshd_config"
echo ""
fi

View File

@@ -1,6 +1,6 @@
---
title: SSH Prohibit Password
homepage: https://webinstall.dev/sshd-prohibit-password
homepage: https://webinstall.dev/ssh-prohibit-password
tagline: |
SSH Prohibit Password: Because friends don't let friends ssh with passwords
linux: true
@@ -8,8 +8,9 @@ linux: true
## Cheat Sheet
> Modern SSH deployments are key-only and don't allow root login. However,
> there's a lot of legacy systems out there.
> Will check if your system This will check if your Modern SSH deployments are
> key-only and don't allow root login. However, there's a lot of legacy systems
> out there.
`ssh-harden` will

View File

@@ -19,8 +19,9 @@ install:
## Cheat Sheet
> Modern SSH deployments are key-only and don't allow root login. However,
> there's a lot of legacy systems out there.
> Will check if your system This will check if your Modern SSH deployments are
> key-only and don't allow root login. However, there's a lot of legacy systems
> out there.
`sshd-prohibit-password` will inspect `/etc/ssh/sshd_config` and

View File

@@ -1 +0,0 @@
github_releases = abhimanyu003/sttr

View File

@@ -1 +0,0 @@
github_releases = syncthing/syncthing

View File

@@ -1 +0,0 @@
hashicorp_product = terraform

Some files were not shown because too many files have changed in this diff Show More