aboutsummaryrefslogtreecommitdiffstats
path: root/misc/auto-completion/bash
diff options
context:
space:
mode:
Diffstat (limited to 'misc/auto-completion/bash')
-rw-r--r--misc/auto-completion/bash/nnn-completion.bash4
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/auto-completion/bash/nnn-completion.bash b/misc/auto-completion/bash/nnn-completion.bash
index eeb1156..e8f2548 100644
--- a/misc/auto-completion/bash/nnn-completion.bash
+++ b/misc/auto-completion/bash/nnn-completion.bash
@@ -27,6 +27,7 @@ _nnn ()
-n
-o
-p
+ -P
-Q
-r
-R
@@ -45,6 +46,9 @@ _nnn ()
return 1
elif [[ $prev == -p ]]; then
COMPREPLY=( $(compgen -f -d -- "$cur") )
+ elif [[ $prev == -P ]]; then
+ local plugins=$(echo $NNN_PLUG | awk -F: -v RS=\; '{print $1}')
+ COMPREPLY=( $(compgen -W "$plugins" -- "$cur") )
elif [[ $prev == -s ]]; then
local sessions_dir=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/sessions
COMPREPLY=( $(cd "$sessions_dir" && compgen -f -d -- "$cur") )