Skip to content


Subversion checkout URL

You can clone with
Download ZIP


clarify the magic comment #9

merged 1 commit into from

2 participants


This wasn't obvious to me at first, maybe it will save someone a couple minutes of head scratching.

@qrush qrush merged commit 6ff0580 into basecamp:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 3, 2012
  1. @UnderpantsGnome
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0 
2 
@@ -134,6 +134,8 @@ fi
# lots more bash...
+The magic comment looks like `# Provide your_sub_name completions`
Passing the `--complete` flag to this subcommand short circuits the real command, and then runs another subcommand instead. The output from your subcommand's `--complete` run is sent to your shell's autocompletion handler for you, and you don't ever have to once worry about how any of that works!
Run the `init` subcommand after you've prepared your sub to get your sub loading automatically in your shell.
Something went wrong with that request. Please try again.