Initial release of herdr session switcher

This commit is contained in:
2026-09-02 01:33:38 +00:00
commit 6c2c9672e1
16 changed files with 3400 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
set -eu
script_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
repository_root=$(CDPATH= cd -- "$script_dir/.." && pwd)
install_dir=${XDG_BIN_HOME:-"$HOME/.local/bin"}
mkdir -p "$install_dir"
ln -sfn "$repository_root/bin/herdr-hub" "$install_dir/herdr-hub"
printf 'installed %s\n' "$install_dir/herdr-hub"
case ":${PATH:-}:" in
*:"$install_dir":*) ;;
*) printf 'note: add %s to PATH\n' "$install_dir" ;;
esac