Apply FZF_COMPLETION_OPTS to kill completion
This commit is contained in:
parent
bd2763d863
commit
9a3cddc92e
@ -275,8 +275,6 @@ the cursor ends with the trigger sequence which is by default `**`.
|
|||||||
|
|
||||||
- `COMMAND [DIRECTORY/][FUZZY_PATTERN]**<TAB>`
|
- `COMMAND [DIRECTORY/][FUZZY_PATTERN]**<TAB>`
|
||||||
|
|
||||||
#### Examples
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Files under current directory
|
# Files under current directory
|
||||||
# - You can select multiple items with TAB key
|
# - You can select multiple items with TAB key
|
||||||
|
@ -86,7 +86,7 @@ _fzf_dir_completion() {
|
|||||||
_fzf_kill_completion() {
|
_fzf_kill_completion() {
|
||||||
local selected
|
local selected
|
||||||
tput sc
|
tput sc
|
||||||
selected=$(ps -ef | sed 1d | fzf -m | awk '{print $2}' | tr '\n' ' ')
|
selected=$(ps -ef | sed 1d | fzf -m $FZF_COMPLETION_OPTS | awk '{print $2}' | tr '\n' ' ')
|
||||||
tput rc
|
tput rc
|
||||||
|
|
||||||
if [ -n "$selected" ]; then
|
if [ -n "$selected" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user