mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-13 08:27:26 +00:00
4bcd0413f8
Running "cut" multiple times in a loop has an adverse performance impact on first use, especially on slow systems. Using builtin "read" for the same purpose is faster and cleaner.
8 lines
202 B
Fish
8 lines
202 B
Fish
|
|
__fish_complete_pgrep pkill
|
|
__fish_make_completion_signals
|
|
for i in $__kill_signals
|
|
echo $i | read number name
|
|
complete -c pkill -o $number -d $name
|
|
complete -c pkill -o $name -d $name
|
|
end
|