Skip to content

Conversation

NorthIsUp
Copy link
Contributor

this pr adds usage zsh and usage fish, the behavior is the same as usage bash except with the respective shells.

This is done by renaming Bash -> Shell and adding an arg to the run method that lets you specify which shell is being used.

CleanShot 2025-05-12 at 14 54 53

alternatives considered:

  • usage shell --shell=<shell> this is the most flexible but also is a bigger footgun, it also looks cumbersome in the shebang of a script.

@jdx jdx merged commit c29f83b into jdx:main May 14, 2025
3 checks passed
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Jul 30, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [usage](https://github.com/jdx/usage) | minor | `2.1.1` -> `2.2.2` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>jdx/usage (usage)</summary>

### [`v2.2.2`](https://github.com/jdx/usage/blob/HEAD/CHANGELOG.md#222---2025-07-16)

[Compare Source](jdx/usage@v2.2.1...v2.2.2)

##### 📚 Documentation

- fix revert for git-cliff by [@&#8203;jdx](https://github.com/jdx) in [#&#8203;302](jdx/usage#302)

##### ◀️ Revert

- Revert "fix(completions): ignore aliases and functions named usage" by [@&#8203;jdx](https://github.com/jdx) in [#&#8203;301](jdx/usage#301)

### [`v2.2.1`](https://github.com/jdx/usage/blob/HEAD/CHANGELOG.md#221---2025-07-16)

[Compare Source](jdx/usage@v2.2.0...v2.2.1)

##### 🐛 Bug Fixes

- **(completions)** ignore aliases and functions named usage by [@&#8203;risu729](https://github.com/risu729) in [#&#8203;300](jdx/usage#300)

##### 🔍 Other Changes

- refactor gh release creation to avoid rate limit errors by [@&#8203;jdx](https://github.com/jdx) in [#&#8203;299](jdx/usage#299)

##### 📦️ Dependency Updates

- update dawidd6/action-homebrew-bump-formula action to v5 by [@&#8203;renovate\[bot\]](https://github.com/renovate[bot]) in [#&#8203;294](jdx/usage#294)

### [`v2.2.0`](https://github.com/jdx/usage/blob/HEAD/CHANGELOG.md#220---2025-07-11)

[Compare Source](jdx/usage@v2.1.1...v2.2.0)

##### 🚀 Features

- Generalize bash command to support bash/zsh/fish by [@&#8203;NorthIsUp](https://github.com/NorthIsUp) in [#&#8203;280](jdx/usage#280)

##### 🐛 Bug Fixes

- update wrong name package manager by [@&#8203;axemanofic](https://github.com/axemanofic) in [#&#8203;287](jdx/usage#287)
- fall back to listing files on unknown completions by [@&#8203;jdx](https://github.com/jdx) in [#&#8203;296](jdx/usage#296)

##### 📚 Documentation

- complete templates by [@&#8203;syhol](https://github.com/syhol) in [#&#8203;286](jdx/usage#286)
- fix bad whitespace character by [@&#8203;syhol](https://github.com/syhol) in [#&#8203;288](jdx/usage#288)

##### 🔍 Other Changes

- add semantic-pr-lint by [@&#8203;jdx](https://github.com/jdx) in [#&#8203;281](jdx/usage#281)
- clippy by [@&#8203;jdx](https://github.com/jdx) in [f6d5e38](jdx/usage@f6d5e38)

##### 📦️ Dependency Updates

- update pnpm/action-setup action to v4 by [@&#8203;renovate\[bot\]](https://github.com/renovate[bot]) in [#&#8203;278](jdx/usage#278)
- update dependency semver to v7.7.2 by [@&#8203;renovate\[bot\]](https://github.com/renovate[bot]) in [#&#8203;283](jdx/usage#283)
- update autofix-ci/action action to v1.3.2 by [@&#8203;renovate\[bot\]](https://github.com/renovate[bot]) in [#&#8203;289](jdx/usage#289)

##### New Contributors

- [@&#8203;syhol](https://github.com/syhol) made their first contribution in [#&#8203;288](jdx/usage#288)
- [@&#8203;axemanofic](https://github.com/axemanofic) made their first contribution in [#&#8203;287](jdx/usage#287)
- [@&#8203;NorthIsUp](https://github.com/NorthIsUp) made their first contribution in [#&#8203;280](jdx/usage#280)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS40NS4wIiwidXBkYXRlZEluVmVyIjoiNDEuNDUuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90Il19-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants