m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

Add Slurm's cli section

Benedetto Polimeni
2024-07-30 15:27:23 +02:00
parent 270e00a12b
commit e066a63c92

@@ -2477,5 +2477,21 @@ selected_emoji=$(echo $emojis | fzf)
echo $selected_emoji
```
### [Slurm](https://slurm.schedmd.com/documentation.html)
fzf integration with some Slurm's cli utilities (zsh & bash)
#### scancel
Look for user's job IDs to easily kill running jobs
```sh
_fzf_complete_scancel() {
_fzf_complete --multi --header-lines=1 -- "$@" < <(squeue -u $USER)
}
_fzf_complete_scancel_post() {
awk '{print $1}'
}
[ -n "$BASH" ] && complete -F _fzf_complete_scancel -o default -o bashdefault scancel || :
```