slurm command autocompletion

1/n salloc complete possible hostnames
This commit is contained in:
Miheer Vaidya 2017-12-24 18:54:14 -05:00
commit c17d275ddb
2 changed files with 11 additions and 0 deletions

5
plugins/slurm/README.md Normal file
View file

@ -0,0 +1,5 @@
## slurm
**Maintainer:** [@vmiheer](https://github.com/vmiheer)
This plugin tries to add completion for slurm command for zsh.

View file

@ -0,0 +1,6 @@
# slurm command completion
function _slurm_hosts() {
_values `sinfo -o "%N" -h | tr ',' ' '`
}
compdef _slurm_hosts salloc