Push first version

This commit is contained in:
kilyabin
2026-01-27 22:37:30 +04:00
parent f06c4143e9
commit 389176a342
9 changed files with 231 additions and 0 deletions

23
install.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -e
if ! command -v pipx >/dev/null; then
echo "[!] pipx not found. Install it first:"
echo " python3 -m pip install --user pipx"
echo " pipx ensurepath"
exit 1
fi
pipx install .
PREFIX="${XDG_DATA_HOME:-$HOME/.local/share}"
mkdir -p "$PREFIX/bash-completion/completions"
mkdir -p "$PREFIX/zsh/site-functions"
mkdir -p "$PREFIX/fish/vendor_completions.d"
cp completions/genpass.bash "$PREFIX/bash-completion/completions/genpass"
cp completions/genpass.zsh "$PREFIX/zsh/site-functions/_genpass"
cp completions/genpass.fish "$PREFIX/fish/vendor_completions.d/genpass.fish"
echo "[✓] Installation complete. Restart your shell."