__fish_make_completion_signals to stop spewing on OS X

OS X does not support kill -L or kill -t.
Use the POSIX path to populate __kill_signals
This commit is contained in:
ridiculousfish 2016-07-09 17:44:21 -07:00
parent ba12bcad33
commit bd2b7764c7

View file

@ -10,7 +10,8 @@ function __fish_make_completion_signals --description 'Make list of kill signals
#
# The procps `kill -L` produces a more compact table. We can distinguish the two cases by
# testing whether it supports `kill -t`; in which case it is the coreutils `kill` command.
if kill -t ^/dev/null >/dev/null
# Darwin doesn't have kill -t or kill -L
if kill -t ^/dev/null >/dev/null; or not kill -L ^/dev/null >/dev/null
# Posix systems print out the name of a signal using 'kill -l SIGNUM'.
complete -c kill -s l --description "List names of available signals"
for i in (seq 31)