A Go port of tobi/try - fresh directories for every vibe 🏠
All credit for the original idea goes to Tobi Lütke and the original Ruby version.
One-Line Install (Recommended):
curl -fsSL https://raw.githubusercontent.com/amulcse/try/main/scripts/install.sh | bashOr Manual Download:
macOS (Apple Silicon):
curl -LO https://github.com/amulcse/try/releases/latest/download/try_darwin_arm64.tar.gz
tar -xzf try_darwin_arm64.tar.gz && chmod +x try && sudo mv try /usr/local/bin/macOS (Intel):
curl -LO https://github.com/amulcse/try/releases/latest/download/try_darwin_amd64.tar.gz
tar -xzf try_darwin_amd64.tar.gz && chmod +x try && sudo mv try /usr/local/bin/Linux (x64):
curl -LO https://github.com/amulcse/try/releases/latest/download/try_linux_amd64.tar.gz
tar -xzf try_linux_amd64.tar.gz && chmod +x try && sudo mv try /usr/local/bin/Linux (arm64):
curl -LO https://github.com/amulcse/try/releases/latest/download/try_linux_arm64.tar.gz
tar -xzf try_linux_arm64.tar.gz && chmod +x try && sudo mv try /usr/local/bin/Windows (PowerShell):
Invoke-WebRequest -Uri "https://github.com/amulcse/try/releases/latest/download/try_windows_amd64.zip" -OutFile "try.zip"
Expand-Archive -Path "try.zip" -DestinationPath "." -Force
Move-Item -Path "try.exe" -Destination "$env:USERPROFILE\bin\try.exe" -Forcebrew install amulcse/tap/tryIf you have Go installed:
go install github.com/amulcse/try/cmd/try@latest
⚠️ Without this step,trywill only print commands instead of executing them!
Bash / Zsh - Add to ~/.bashrc or ~/.zshrc:
eval "$(try init)"Fish - Add to ~/.config/fish/config.fish:
eval (try init | string collect)Then restart your terminal or run:
source ~/.zshrc # or ~/.bashrcInstantly navigate through all your experiment directories with:
- Fuzzy search that just works
- Smart sorting - recently used stuff bubbles to the top
- Auto-dating - creates directories like
2025-01-21-redis-experiment - Zero config - just one binary, no dependencies
try # Browse all experiments
try redis # Jump to redis experiment or create new
try new api # Create "2025-01-21-api"
try . # Create dated worktree for current repo
try clone https://... # Clone repo into dated directory
try https://github.com/... # Shorthand for clone
try delete # Delete a directory
try rename # Rename a directory
try --help # See all options| Key | Action |
|---|---|
↑ / ↓ |
Navigate |
Ctrl-P / Ctrl-N |
Navigate (vim-style) |
Ctrl-J / Ctrl-K |
Navigate (vim-style) |
Enter |
Select or create |
Backspace |
Delete character |
Ctrl-U |
Clear input |
Ctrl-D |
Delete directory |
Ctrl-R |
Rename directory |
ESC |
Cancel |
Set TRY_PATH to change where experiments are stored:
export TRY_PATH=~/code/sketchesDefault: ~/src/tries
- Single binary - No Ruby runtime required
- Cross-platform - Pre-built binaries for macOS, Linux, Windows
- Same features - 100% compatible with the original
- Fast - Native compiled performance
rdsmatchesredis-serverconnpoolmatchesconnection-pool- Recent stuff scores higher
- Shows how long ago you touched each project
- Recently accessed directories float to the top
- Clean, minimal interface
- Highlights matches as you type
- Respects
NO_COLORenvironment variable
- Everything in one place
- Auto-prefixes with dates
- Git worktree support
Your brain doesn't work in neat folders. You have ideas, you try things, you context-switch like a caffeinated squirrel. This tool embraces that.
Every experiment gets a home. Every home is instantly findable.
All credit goes to Tobi Lütke and the original try project.
This is a Go port providing:
- Single binary distribution
- No Ruby dependency
- Cross-platform binaries
Check out the original: github.com/tobi/try
MIT License - Same as the original project.
Your experiments deserve a home. 🏠
