mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-22 03:10:11 +08:00

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
|