mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-06 03:10:35 +01:00
Merge b10422f8fd into 5292fea2ba
This commit is contained in:
commit
4355e7b063
2 changed files with 41 additions and 2 deletions
|
|
@ -2,10 +2,29 @@
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
|
|
||||||
This `chezmoi` plugin sets up completion for [chezmoi](https://chezmoi.io).
|
This `chezmoi` plugin provides completion and [aliases](#aliases) for [chezmoi](https://chezmoi.io).
|
||||||
|
|
||||||
To use it, add `chezmoi` to the plugins array of your zshrc file:
|
To use it, add `chezmoi` to the plugins array of your zshrc file:
|
||||||
|
|
||||||
```bash
|
```zsh
|
||||||
plugins=(... chezmoi)
|
plugins=(... chezmoi)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Aliases
|
||||||
|
|
||||||
|
| Alias | Command | Description |
|
||||||
|
| :----- | :--------------------- | :----------------------------------------------------- |
|
||||||
|
| `cm` | `chezmoi` | The base chezmoi command |
|
||||||
|
| `cma` | `chezmoi add` | Add a file to the source state |
|
||||||
|
| `cmap` | `chezmoi apply` | Update the destination to match the target state |
|
||||||
|
| `cmcd` | `chezmoi cd` | Launch a shell in the source directory |
|
||||||
|
| `cmd` | `chezmoi diff` | Print the diff between target state and destination |
|
||||||
|
| `cme` | `chezmoi edit` | Edit the source state of a target |
|
||||||
|
| `cmg` | `chezmoi git` | Run git in the source directory |
|
||||||
|
| `cmi` | `chezmoi init` | Set up the source directory |
|
||||||
|
| `cmia` | `chezmoi init --apply` | Set up the source directory and apply in one step |
|
||||||
|
| `cmm` | `chezmoi merge` | Three-way merge for a file |
|
||||||
|
| `cmma` | `chezmoi merge-all` | Three-way merge for all modified files |
|
||||||
|
| `cmra` | `chezmoi re-add` | Re-add modified files |
|
||||||
|
| `cmst` | `chezmoi status` | Show the status of targets |
|
||||||
|
| `cmu` | `chezmoi update` | Pull and apply changes from the remote |
|
||||||
|
|
|
||||||
|
|
@ -12,3 +12,23 @@ if [[ ! -f "$ZSH_CACHE_DIR/completions/_chezmoi" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chezmoi completion zsh >| "$ZSH_CACHE_DIR/completions/_chezmoi" &|
|
chezmoi completion zsh >| "$ZSH_CACHE_DIR/completions/_chezmoi" &|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Aliases
|
||||||
|
# (sorted alphabetically by alias name)
|
||||||
|
#
|
||||||
|
|
||||||
|
alias cm='chezmoi'
|
||||||
|
alias cma='chezmoi add'
|
||||||
|
alias cmap='chezmoi apply'
|
||||||
|
alias cmcd='chezmoi cd'
|
||||||
|
alias cmd='chezmoi diff'
|
||||||
|
alias cme='chezmoi edit'
|
||||||
|
alias cmg='chezmoi git'
|
||||||
|
alias cmi='chezmoi init'
|
||||||
|
alias cmia='chezmoi init --apply'
|
||||||
|
alias cmm='chezmoi merge'
|
||||||
|
alias cmma='chezmoi merge-all'
|
||||||
|
alias cmra='chezmoi re-add'
|
||||||
|
alias cmst='chezmoi status'
|
||||||
|
alias cmu='chezmoi update'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue