Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command aliases #80

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
- Add shell completions, accessed by enabling the `COMPLETE` environment variable [#6](https://github.com/LucasPickering/env-select/issues/6)
- For example, adding `COMPLETE=fish es | source` to your `fish.config` will enable completions for fish
- [See docs](https://env-select.lucaspickering.me/book/user_guide/shell_completions.html) for more info and a list of supported shells
- Add command aliases
- `es r` alias for `es run`, `es s` for `es set`

### Changed

Expand Down
3 changes: 2 additions & 1 deletion src/commands/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ use clap::Parser;
/// The passed command is run through your shell, meaning you can use aliases
/// and other shell features. See
/// https://env-select.lucaspickering.me/book/user_guide/run_advanced.html for
/// more details of shell interactions.
/// more details on shell interactions.
#[derive(Clone, Debug, Parser)]
#[clap(visible_alias = "r")]
pub struct RunCommand {
#[command(flatten)]
selection: Selection,
Expand Down
1 change: 1 addition & 0 deletions src/commands/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const WEBSITE: &str = "https://env-select.lucaspickering.me";

/// Modify current shell environment
#[derive(Clone, Debug, Parser)]
#[clap(visible_alias = "s")]
pub struct SetCommand {
#[command(flatten)]
selection: Selection,
Expand Down
Loading