mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-29 04:53:17 +02:00
slurm command autocompletion
1/n salloc complete possible hostnames
This commit is contained in:
parent
c3b072eace
commit
c17d275ddb
2 changed files with 11 additions and 0 deletions
5
plugins/slurm/README.md
Normal file
5
plugins/slurm/README.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
## slurm
|
||||||
|
|
||||||
|
**Maintainer:** [@vmiheer](https://github.com/vmiheer)
|
||||||
|
|
||||||
|
This plugin tries to add completion for slurm command for zsh.
|
||||||
6
plugins/slurm/slurm.plugin.zsh
Normal file
6
plugins/slurm/slurm.plugin.zsh
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
|
||||||
|
# slurm command completion
|
||||||
|
function _slurm_hosts() {
|
||||||
|
_values `sinfo -o "%N" -h | tr ',' ' '`
|
||||||
|
}
|
||||||
|
compdef _slurm_hosts salloc
|
||||||
Loading…
Add table
Add a link
Reference in a new issue