mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-26 03:35:17 +00:00
__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:
parent
ba12bcad33
commit
bd2b7764c7
1 changed files with 2 additions and 1 deletions
|
@ -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
|
# 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.
|
# 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'.
|
# Posix systems print out the name of a signal using 'kill -l SIGNUM'.
|
||||||
complete -c kill -s l --description "List names of available signals"
|
complete -c kill -s l --description "List names of available signals"
|
||||||
for i in (seq 31)
|
for i in (seq 31)
|
||||||
|
|
Loading…
Reference in a new issue