mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-04 05:15:05 +08:00
Compare commits
4 Commits
52d93f18d6
...
400591e71c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
400591e71c | ||
|
|
536515d186 | ||
|
|
2117ee5cf7 | ||
|
|
7f8d6b1fca |
2
.github/workflows/scorecard.yml
vendored
2
.github/workflows/scorecard.yml
vendored
@@ -60,6 +60,6 @@ jobs:
|
||||
retention-days: 5
|
||||
|
||||
- name: "Upload to code-scanning"
|
||||
uses: github/codeql-action/upload-sarif@9e907b5e64f6b83e7804b09294d44122997950d6 # v4.32.3
|
||||
uses: github/codeql-action/upload-sarif@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4
|
||||
with:
|
||||
sarif_file: results.sarif
|
||||
|
||||
@@ -43,7 +43,7 @@ function colored() {
|
||||
environment+=( PATH="${__colored_man_pages_dir}:$PATH" )
|
||||
fi
|
||||
|
||||
command env $environment "$@"
|
||||
command env "${environment[@]}" "$@"
|
||||
}
|
||||
|
||||
# Colorize man and dman/debman (from debian-goodies)
|
||||
|
||||
9
plugins/molecule/README.md
Normal file
9
plugins/molecule/README.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# Molecule plugin
|
||||
|
||||
This plugin adds completion for [Molecule](https://ansible.readthedocs.io/projects/molecule/), the project designed to aid in the development and testing of Ansible roles..
|
||||
|
||||
To use it, add `molecule` to the plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... molecule)
|
||||
```
|
||||
14
plugins/molecule/molecule.plugin.zsh
Normal file
14
plugins/molecule/molecule.plugin.zsh
Normal file
@@ -0,0 +1,14 @@
|
||||
# Completion
|
||||
if (( ! $+commands[molecule] )); then
|
||||
return
|
||||
fi
|
||||
|
||||
# If the completion file doesn't exist yet, we need to autoload it and
|
||||
# bind it to `molecule`. Otherwise, compinit will have already done that.
|
||||
if [[ ! -f "$ZSH_CACHE_DIR/completions/_molecule" ]]; then
|
||||
typeset -g -A _comps
|
||||
autoload -Uz _molecule
|
||||
_comps[molecule]=_molecule
|
||||
fi
|
||||
|
||||
_MOLECULE_COMPLETE=zsh_source molecule >| "$ZSH_CACHE_DIR/completions/_molecule" &|
|
||||
@@ -22,6 +22,6 @@ plugins=(... yum)
|
||||
| yi | `sudo yum install` | Install package |
|
||||
| ygi | `sudo yum groupinstall` | Install package group |
|
||||
| yr | `sudo yum remove` | Remove package |
|
||||
| ygr | `sudo yum groupremove` | Remove pagage group |
|
||||
| ygr | `sudo yum groupremove` | Remove package group |
|
||||
| yrl | `sudo yum remove --remove-leaves` | Remove package and leaves |
|
||||
| yc | `sudo yum clean all` | Clean yum cache |
|
||||
|
||||
Reference in New Issue
Block a user