zoxide/templates
Jeff Melton 639062f131
Add Murex shell support
Adds the Murex shell (https://murex.rocks) to the set of shells
supported by 'zoxide init'.

Changes:
- templates/murex.txt: new init script template implementing
  PWD/Prompt hooks via 'event onPrompt name=command-completion',
  __zoxide_z/zi helpers with empty-PARAMS handling, and clean
  return-1 on no-match queries.
- src/shell.rs: wires the template + two tests:
  * murex_murex (functional, runs the rendered init under murex -c),
    parameterized across all opts combinations and gated by the
    nix-dev feature so it only runs in the project's nix-shell
  * murex_template_has_direct_path_handling (string assertions on
    the rendered template, runs always)
- src/cmd/cmd.rs: adds Murex to the InitShell enum
- src/cmd/init.rs: imports Murex and adds the match arm
- shell.nix: pins Murex to v7.2.1001 via a surgical overrideAttrs
  on the existing pkgs.murex (only this single package changes; the
  nixpkgs pin itself stays put). v7.0 introduced the
  'command-completion' onPrompt interrupt that the prompt/PWD hooks
  depend on, so the version bundled with the current nixpkgs pin
  (v6.4.2063) is too old to source the rendered init.

Completion stubs in contrib/completions/ are not touched directly;
they regenerate via build.rs when the InitShell enum changes.

Closes #1085
2026-05-25 14:53:55 -05:00
..
bash.txt import: auto-detect databases; add Atuin support (#1232) 2026-05-11 00:24:43 +05:30
elvish.txt fix(elvish): before-chdir should assign to oldpwd upvalue (#818) 2024-05-29 15:06:28 +05:30
fish.txt import: auto-detect databases; add Atuin support (#1232) 2026-05-11 00:24:43 +05:30
murex.txt Add Murex shell support 2026-05-25 14:53:55 -05:00
nushell.txt nushell: use sigil operator (#1070) 2025-05-31 04:53:54 +05:30
posix.txt import: auto-detect databases; add Atuin support (#1232) 2026-05-11 00:24:43 +05:30
powershell.txt pwsh: Use fully qualified names when invoking cmdlets (#1236) 2026-05-12 05:12:30 +05:30
tcsh.txt import: auto-detect databases; add Atuin support (#1232) 2026-05-11 00:24:43 +05:30
xonsh.txt Add support for csh (#1047) 2025-05-06 11:28:54 +05:30
zsh.txt Skip zsh doctor in non-interactive shells (#1241) 2026-05-22 00:13:25 +05:30