diff options
| author | Igor Urazov <z0rc@users.noreply.github.com> | 2017-10-21 04:31:34 +0300 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-10-21 10:31:34 +0900 |
| commit | eaf6eb897879becff31ea9b27046c0eff9e1e646 (patch) | |
| tree | 26d0a5c1875e243954b726b95016ba3c43c2eefc /shell/completion.bash | |
| parent | 3af63bcf1f203c9716a3f69e1264b8877e528941 (diff) | |
| download | fzf-eaf6eb897879becff31ea9b27046c0eff9e1e646.tar.gz | |
[completion] Ensure ps called as command (#1098)
When `ps` is aliased for something uncommon, like `alias ps=grc ps` which colorizes ps output, the output of `ps` can be unexpected and/or undesired.
This change makes ps to be always executed as command, even if it's aliased.
Diffstat (limited to 'shell/completion.bash')
| -rw-r--r-- | shell/completion.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/completion.bash b/shell/completion.bash index cd2b10bc..445df178 100644 --- a/shell/completion.bash +++ b/shell/completion.bash @@ -215,7 +215,7 @@ _fzf_complete_kill() { local selected fzf fzf="$(__fzfcmd_complete)" - selected=$(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=$(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' ' ') printf '\e[5n' if [ -n "$selected" ]; then |
