forked from Lainports/freebsd-ports
The patches for this port got mangled in the last update. This patch corrects that so the completion for kill(1) works again if one is using the example shell completion files. PR: 226654 Submitted by: Sascha Holzleiter <sascha@root-login.org> (maintainer)
11 lines
718 B
Bash
11 lines
718 B
Bash
--- shell/completion.bash.orig 2017-12-03 14:55:24 UTC
|
|
+++ shell/completion.bash
|
|
@@ -219,7 +219,7 @@ _fzf_complete_kill() {
|
|
|
|
local selected fzf
|
|
fzf="$(__fzfcmd_complete)"
|
|
- selected=$(command ps -ef | sed 1d | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-50%} --min-height 15 --reverse $FZF_DEFAULT_OPTS --preview 'echo {}' --preview-window down:3:wrap $FZF_COMPLETION_OPTS" $fzf -m | awk '{print $2}' | tr '\n' ' ')
|
|
+ selected=$(ps -uef | sed 1d | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-50%} --min-height 15 --reverse $FZF_DEFAULT_OPTS --preview 'echo {}' --preview-window down:3:wrap $FZF_COMPLETION_OPTS" $fzf -m | awk '{print $2}' | tr '\n' ' ')
|
|
printf '\e[5n'
|
|
|
|
if [ -n "$selected" ]; then
|