Skip to content

JonathanRiche/tryz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Attribution

This project is a port of tobi's original CLI: https://github.com/tobi/try-cli

tryz

Zig implementation of the try workspace manager.

The binary command is still try for shell compatibility.

Install

  1. Clone this repo:
git clone <your-repo-url> try-zig
cd try-zig
  1. Build:
zig build
  1. Optional global command install:
mkdir -p ~/.local/bin
ln -sfn "$(pwd)/zig-out/bin/try" ~/.local/bin/try
hash -r
  1. Verify:
try -h

Shell Integration

try prints shell commands that your shell function evaluates.

zsh / bash

Current session:

eval "$(try init ~/src/tries)"

Persist:

echo 'eval "$(try init ~/src/tries)"' >> ~/.zshrc

For bash, write to ~/.bashrc instead.

fish

Current session:

try init ~/src/tries | source

Persist:

echo 'try init ~/src/tries | source' >> ~/.config/fish/config.fish

Usage

try
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.git

CLI Flags

Global flags:

  • -h, --help show help
  • -v, --version show version
  • --path <dir> or --path=<dir> set tries root path
  • --no-colors compatibility flag
  • --and-exit compatibility flag
  • --and-keys <keys> or --and-keys=<keys> compatibility flag

Selector Keys

  • Up/Down move selection
  • j/k move selection
  • Enter select workspace
  • q quit selector
  • Ctrl-C cancel

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages