Skip to content
Myr

[bash] Strip trailing whitespace on kill completion

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 5215415 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:shell/completion.bash+1 added
231 unmodified lines
232 [ -n "${COMP_WORDS[COMP_CWORD]}" ] && return 1233234 local selected235 selected=$(command ps -ef | sed 1d | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-50%} --min-height 15 --reverse $FZF_DEFAULT_OPTS $FZF_COMPLETION_OPTS --preview 'echo {}' --preview-window down:3:wrap" __fzf_comprun "kill" -m | awk '{print $2}' | tr '\n' ' ')236 selected=${selected% }237 printf '\e[5n'238239 if [ -n "$selected" ]; then240 COMPREPLY=( "$selected" )
105 unmodified lines