Multi-shell support: the worker no longer hard-depends on zsh.
Added
- bash worker (
scripts/shorten_path.bash, bash 3.2+) and fish worker (scripts/shorten_path.fish, fish 3.1+), alongside the existing zsh worker. All three produce byte-for-byte identical output. - Shell auto-detection at config-load time: tries
bash → zsh → fishand uses the first available. New@shorten_path_shelloption (bash|zsh|fish) forces a specific one. If none is available, the plugin disables itself gracefully.
Changed
- Renamed
scripts/shorten_path.sh→scripts/shorten_path.zsh(content unchanged). - Requirements are now one of: bash 3.2+, zsh, or fish 3.1+ — independent of your login shell.
Hardened
- Shell-injection-safe quoting of option values baked into the
#(...)command (notably@shorten_path_markers). - Worker path quoting (spaces in install path), worker-file existence/exec check in detection, empty/unset HOME guard.
Upgrade note: reload your tmux config after updating so the new worker path is picked up.