Skip to content

Commit

Permalink
feat(command): rename generate-tmux-plugin-config to init
Browse files Browse the repository at this point in the history
  • Loading branch information
graelo committed Nov 5, 2022
1 parent 41a85f6 commit 54a38e5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Type

```shell
mkdir ~/.tmux/plugins/tmux-backup
tmux-backup generate-tmux-plugin-config > ~/.tmux/plugins/tmux-backup/tmux-backup.tmux
tmux-backup init > ~/.tmux/plugins/tmux-backup/tmux-backup.tmux
```

If you don't use [tpm](https://github.com/tmux-plugins/tpm), just add this to your
Expand Down
2 changes: 1 addition & 1 deletion src/bin/tmux-backup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async fn run(config: Config) {
generate(shell, &mut app, name, &mut std::io::stdout());
}

Command::GenerateTmuxPluginConfig => {
Command::Init => {
let text = std::include_str!("../../tmux-backup.tmux");
println!("{text}");
}
Expand Down
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ pub enum Command {
/// Outputs the default tmux plugin config to stdout.
///
/// Similar to shell completions, this is done once when installing tmux-backup. Type
/// `tmux-backup generate-tmux-plugin-config > ~/.tmux/plugins/tmux-backup.tmux`. and source it
/// `tmux-backup init > ~/.tmux/plugins/tmux-backup.tmux`. and source it
/// from your `~/.tmux.conf`. See the README for details.
GenerateTmuxPluginConfig,
Init,
}

/// Catalog subcommands.
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
//!
//! ```shell
//! mkdir ~/.tmux/plugins/tmux-backup
//! tmux-backup generate-tmux-plugin-config > ~/.tmux/plugins/tmux-backup/tmux-backup.tmux
//! tmux-backup init > ~/.tmux/plugins/tmux-backup/tmux-backup.tmux
//! ```
//!
//! If you don't use [tpm](https://github.com/tmux-plugins/tpm), just add this to your
Expand Down

0 comments on commit 54a38e5

Please sign in to comment.