Last active
October 13, 2023 13:30
-
-
Save AllanChain/b2717bfd5288b8cf93e07e38c3a1ffeb to your computer and use it in GitHub Desktop.
Custom ZSH completion for Slurm's `scancel`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Learn from https://mrigank11.github.io/2018/03/zsh-auto-completion/ | |
function _scancel { | |
_describe 'command' "($(squeue -h -o '%i:%T-%j' -u $USER))" | |
} | |
compdef _scancel scancel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment