This project is a port of tobi's original CLI: https://github.com/tobi/try-cli
Zig implementation of the try workspace manager.
The binary command is still try for shell compatibility.
- Clone this repo:
git clone <your-repo-url> try-zig
cd try-zig- Build:
zig build- Optional global command install:
mkdir -p ~/.local/bin
ln -sfn "$(pwd)/zig-out/bin/try" ~/.local/bin/try
hash -r- Verify:
try -htry prints shell commands that your shell function evaluates.
Current session:
eval "$(try init ~/src/tries)"Persist:
echo 'eval "$(try init ~/src/tries)"' >> ~/.zshrcFor bash, write to ~/.bashrc instead.
Current session:
try init ~/src/tries | sourcePersist:
echo 'try init ~/src/tries | source' >> ~/.config/fish/config.fishtry
try <query>
try exec <query>
try clone <url> [name]
try worktree <name>
try . <name>
try init [path]URL shorthand is supported:
try https://github.com/owner/repo.git
try git@github.com:owner/repo.gitGlobal flags:
-h,--helpshow help-v,--versionshow version--path <dir>or--path=<dir>set tries root path--no-colorscompatibility flag--and-exitcompatibility flag--and-keys <keys>or--and-keys=<keys>compatibility flag
Up/Downmove selectionj/kmove selectionEnterselect workspaceqquit selectorCtrl-Ccancel