mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-07-03 05:31: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
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