summaryrefslogtreecommitdiff
path: root/shell/completion.bash
diff options
context:
space:
mode:
authorIgor Urazov <z0rc@users.noreply.github.com>2017-10-21 04:31:34 +0300
committerJunegunn Choi <junegunn.c@gmail.com>2017-10-21 10:31:34 +0900
commiteaf6eb897879becff31ea9b27046c0eff9e1e646 (patch)
tree26d0a5c1875e243954b726b95016ba3c43c2eefc /shell/completion.bash
parent3af63bcf1f203c9716a3f69e1264b8877e528941 (diff)
downloadfzf-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.bash2
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