Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RamiAwar authored Dec 8, 2024
1 parent c42fe20 commit 756e614
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ You can use variables (`<param>` or `<param=default_value>` ) in snippets.

- Register your command snippets easily.
- Use variables (with one or several default values) in snippets.
- Search snippets interactively.
- Search snippets interactively
- Run snippets directly.
- Edit snippets easily (config is just a TOML file).
- Sync snippets via Gist or GitLab Snippets automatically.
Expand Down Expand Up @@ -143,6 +143,8 @@ By adding the following config to `.bashrc`, you can search snippets and output
This will also allow you to execute the commands yourself, which will add them to your shell history! This is basically the only way we can manipulate shell history.
This also allows you to *chain* commands! [Example here](https://github.com/knqyf263/pet/discussions/266)

You can also customize the search and list commands with options, example `-t` or `--tags`, for example to only search the subset of snippets tagged with myjob `pet search -t myjob`.

```
cat .bashrc
function pet-select() {
Expand Down

0 comments on commit 756e614

Please sign in to comment.