fix: use correct kill command

This commit is contained in:
Price Hiller 2022-07-23 00:59:27 -05:00
parent 1e191aa0b0
commit 0f86c66fea
2 changed files with 1 additions and 2 deletions

View File

@ -137,7 +137,6 @@ if [[ "$OSTYPE" = "darwin"* ]]; then
alias p="pbpaste"
alias grep="ggrep"
alias find="gfind"
alias kill="gkill"
alias sed="gsed"
fi

View File

@ -17,7 +17,7 @@ zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*:*:*:*:processes' command "ps -u $USER -o pid,user,comm -w -w"
zstyle ':fzf-tab:complete:(kill|ps):argument-rest' fzf-preview \
'[[ $group == "[process ID]" ]] && ps --pid=$word -o cmd --no-headers -w -w'
zstyle ':fzf-tab:complete:(kill|ps):argument-rest' fzf-flags --preview-window=down,3,wrap --preview='echo {}' --bind="ctrl-r:reload(date; ps -ef)" --header="Press CTRL-R to reload\n\n" --header-lines=2
zstyle ':fzf-tab:complete:(kill|ps):argument-rest' fzf-flags --preview-window=down,3,wrap --preview='echo {}' --bind="ctrl-r:reload(date; ps -ef)" --header="Press CTRL-R to reload" --header-lines=2
# Tab completion for Systemd unit status