diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2015-09-09 20:55:04 +0200 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2015-09-09 20:55:04 +0200 |
commit | b85a8bbbfed56f603dca5d6da85858f9c973b669 (patch) | |
tree | aaca0722b25cff9d5e2ea5b46ad6e7dc59d9ec6d /share/functions/__fish_make_completion_signals.fish | |
parent | 925f4517739ed564edcac6dd5ed29c2835461da9 (diff) |
Rename sgrep to __fish_sgrep
Makes it harder to cause issues with aliases, see fish-shell#2245
Diffstat (limited to 'share/functions/__fish_make_completion_signals.fish')
-rw-r--r-- | share/functions/__fish_make_completion_signals.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/__fish_make_completion_signals.fish b/share/functions/__fish_make_completion_signals.fish index c957f90b..d7a7d062 100644 --- a/share/functions/__fish_make_completion_signals.fish +++ b/share/functions/__fish_make_completion_signals.fish @@ -5,7 +5,7 @@ function __fish_make_completion_signals --description 'Make list of kill signals # Debian and some related systems use 'kill -L' to write out a numbered list # of signals. Use this to complete on both number _and_ on signal name. complete -c kill -s L --description "List codes and names of available signals" - set -g __kill_signals (kill -L | sed -e 's/\([0-9][0-9]*\) *\([A-Z,0-9][A-Z,0-9]*\)/\1 \2\n/g;s/ +/ /g' | sed -e 's/^ \+//' | sgrep -E '^[^ ]+') + set -g __kill_signals (kill -L | sed -e 's/\([0-9][0-9]*\) *\([A-Z,0-9][A-Z,0-9]*\)/\1 \2\n/g;s/ +/ /g' | sed -e 's/^ \+//' | __fish_sgrep -E '^[^ ]+') else # Posix systems print out the name of a signal using 'kill -l # SIGNUM', so we use this instead. |