try
try copied to clipboard
add try --help
try does not have a --help. this would be useful.
But it has --help
$ try --help
try something!
Lightweight experiments for people with ADHD
this tool is not meant to be used directly,
but added to your ~/.zshrc or ~/.bashrc:
eval "$(/Users/alxgsv/.local/try.rb init ~/src/tries)"
for fish shell, add to ~/.config/fish/config.fish:
eval (/Users/alxgsv/.local/try.rb init ~/src/tries | string collect)
Usage:
init [--path PATH] # Initialize shell function for aliasing
cd [QUERY] [name?] # Interactive selector; Git URL shorthand supported
clone <git-uri> [name] # Clone git repo into date-prefixed directory
worktree dir [name] # Create date-prefixed dir; add worktree from CWD if git repo
worktree <repo-path> [name] # Same as above, but source repo is <repo-path>
Clone Examples:
try clone https://github.com/tobi/try.git
# Creates: 2025-08-27-tobi-try
try clone https://github.com/tobi/try.git my-fork
# Creates: my-fork
try https://github.com/tobi/try.git
# Shorthand for clone (same as first example)
Worktree Examples:
try worktree dir
# From current git repo, creates: 2025-08-27-repo-name and adds detached worktree
try worktree ~/src/github.com/tobi/try my-branch
# From given repo path, creates: 2025-08-27-my-branch and adds detached worktree
Defaults:
Default path: ~/src/tries (override with --path on commands)
Current default: /Users/alxgsv/src/tries