Skip to content

v0.2.0 — bash & fish workers

Latest

Choose a tag to compare

@Amdhj22 Amdhj22 released this 29 May 10:43
f331e0a

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 → fish and uses the first available. New @shorten_path_shell option (bash|zsh|fish) forces a specific one. If none is available, the plugin disables itself gracefully.

Changed

  • Renamed scripts/shorten_path.shscripts/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.