Skip to content

Commit

Permalink
additional command_not_found handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
jhheider authored and mxcl committed Nov 8, 2022
1 parent 780c7b9 commit 92a83df
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,34 @@ figure out the rest.
(not for the the faint of heart.)
If you really want to put `tea` through its paces, you can combine the search
magic with your shell's `not-found` logic, to get automatic `tea` lookups. In
`zsh`, that's:
magic with your shell's `not-found` logic, to get automatic `tea` lookups.
`zsh`:
```sh
function command_not_found_handler {
tea -X $*
}
```
`bash`: (v4 and up; macOS ships with 3.2, sadly, but `tea` provides `+gnu.org/bash`,
and I've met very few people who want to use `bash` on macs, though I bet you're out
there.)
```sh
function command_not_found_handle {
tea -X $*
}
```
`fish`:
```sh
function fish_command_not_found
tea -X $argv
end
```
> ### Coming Soon
>
> ```yaml
Expand Down

0 comments on commit 92a83df

Please sign in to comment.