Initial release of herdr session switcher
This commit is contained in:
Executable
+15
@@ -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
|
||||
Reference in New Issue
Block a user