mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 23:04:22 +08: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.
9 lines
202 B
Fish
9 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
|