try icon indicating copy to clipboard operation
try copied to clipboard

add try --help

Open darinkishore opened this issue 3 months ago • 1 comments

try does not have a --help. this would be useful.

darinkishore avatar Nov 10 '25 08:11 darinkishore

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

alxgsv avatar Nov 12 '25 14:11 alxgsv