From ca968c4e5040f1ff4b5b5e12d9312360d807dcc1 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 3 Jun 2024 19:56:39 +0800 Subject: added submodules, change . -> dot (see man stow --dotfiles) --- dot-oh-my-zsh/plugins/pre-commit/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 dot-oh-my-zsh/plugins/pre-commit/README.md (limited to 'dot-oh-my-zsh/plugins/pre-commit/README.md') diff --git a/dot-oh-my-zsh/plugins/pre-commit/README.md b/dot-oh-my-zsh/plugins/pre-commit/README.md new file mode 100644 index 00000000..e6d80d36 --- /dev/null +++ b/dot-oh-my-zsh/plugins/pre-commit/README.md @@ -0,0 +1,19 @@ +# Pre-commit plugin + +This plugin adds aliases for common commands of [pre-commit](https://pre-commit.com/). + +To use this plugin, add it to the plugins array in your zshrc file: + +```zsh +plugins=(... pre-commit) +``` + +## Aliases + +| Alias | Command | Description | +| ------- | -------------------------------------- | ------------------------------------------------------ | +| prc | `pre-commit` | The `pre-commit` command | +| prcau | `pre-commit autoupdate` | Update hooks automatically | +| prcr | `pre-commit run` | The `pre-commit run` command | +| prcra | `pre-commit run --all-files` | Run pre-commit hooks on all files | +| prcrf | `pre-commit run --files` | Run pre-commit hooks on a given list of files | -- cgit v1.2.3