aboutsummaryrefslogtreecommitdiffstats
path: root/misc/auto-completion/bash
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-17 19:06:42 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-17 19:37:57 +0530
commit64667b377d132cd915d128d91c2ab7b38c1ba683 (patch)
tree97a51406471052e9d91969fc9dfcfce6533b3283 /misc/auto-completion/bash
parent94a233b808e039d1a17aab4e12f1b1fb13302d54 (diff)
downloadnnn-64667b377d132cd915d128d91c2ab7b38c1ba683.tar.gz
Options -e and -t
Replaces the following environment variables: - NNN_USE_EDITOR - NNN_IDLE_TIMEOUT
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 74349e6..b6e370d 100644
--- a/misc/auto-completion/bash/nnn-completion.bash
+++ b/misc/auto-completion/bash/nnn-completion.bash
@@ -17,6 +17,7 @@ _nnn ()
-b
-c
-d
+ -e
-E
-g
-H
@@ -29,6 +30,7 @@ _nnn ()
-R
-s
-S
+ -t
-v
-V
-x
@@ -42,6 +44,8 @@ _nnn ()
elif [[ $prev == -s ]]; then
local sessions_dir=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/sessions
COMPREPLY=( $(cd "$sessions_dir" && compgen -f -d -- "$cur") )
+ elif [[ $prev == -t ]]; then
+ return 1
elif [[ $cur == -* ]]; then
COMPREPLY=( $(compgen -W "${opts[*]}" -- "$cur") )
else