From bd2b7764c71be16a4ad2a411b15a3df07719b892 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 9 Jul 2016 17:44:21 -0700 Subject: [PATCH] __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 --- share/functions/__fish_make_completion_signals.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/functions/__fish_make_completion_signals.fish b/share/functions/__fish_make_completion_signals.fish index 5cf4acd04..e9dabf77c 100644 --- a/share/functions/__fish_make_completion_signals.fish +++ b/share/functions/__fish_make_completion_signals.fish @@ -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)