mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 00:03:39 -05:00
Apply FZF_COMPLETION_OPTS to kill completion
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user