aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorGravatar lvgx <l@vgx.fr>2020-05-23 14:03:37 +0200
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-05-23 17:40:51 +0530
commitb1027150ed09ddeb9acab56a29e216c7196be4e1 (patch)
treedc48a4cb198d9926c0f32fa007e5d0f42e660af9 /misc
parentc7af686b4e527148ff2ee301204769b819785dba (diff)
downloadnnn-b1027150ed09ddeb9acab56a29e216c7196be4e1.tar.gz
Add -a option to generate a temporary NNN_FIFO (#588)
* Add -a option to generate a temporary NNN_FIFO * Add documentation for -a option * plugins/README.md: promote the use of -a This obsoletes the global FIFO unlink trick, so I remove mentions of it. @jarun update: Polish -a
Diffstat (limited to 'misc')
-rw-r--r--misc/auto-completion/bash/nnn-completion.bash1
-rw-r--r--misc/auto-completion/fish/nnn.fish1
-rw-r--r--misc/auto-completion/zsh/_nnn1
3 files changed, 3 insertions, 0 deletions
diff --git a/misc/auto-completion/bash/nnn-completion.bash b/misc/auto-completion/bash/nnn-completion.bash
index e8f2548..820e1c7 100644
--- a/misc/auto-completion/bash/nnn-completion.bash
+++ b/misc/auto-completion/bash/nnn-completion.bash
@@ -12,6 +12,7 @@ _nnn ()
local cur=$2 prev=$3
local -a opts
opts=(
+ -a
-A
-b
-c
diff --git a/misc/auto-completion/fish/nnn.fish b/misc/auto-completion/fish/nnn.fish
index 1b6455b..ac6e462 100644
--- a/misc/auto-completion/fish/nnn.fish
+++ b/misc/auto-completion/fish/nnn.fish
@@ -11,6 +11,7 @@ else
set sessions_dir $HOME/.config/nnn/sessions
end
+complete -c nnn -s a -d 'auto-setup NNN_FIFO'
complete -c nnn -s A -d 'disable dir auto-select'
complete -c nnn -s b -r -d 'bookmark key to open' -x -a '(echo $NNN_BMS | awk -F: -v RS=\; \'{print $1"\t"$2}\')'
complete -c nnn -s c -d 'cli-only opener'
diff --git a/misc/auto-completion/zsh/_nnn b/misc/auto-completion/zsh/_nnn
index 441589a..d130b16 100644
--- a/misc/auto-completion/zsh/_nnn
+++ b/misc/auto-completion/zsh/_nnn
@@ -9,6 +9,7 @@
setopt localoptions noshwordsplit noksharrays
local -a args
args=(
+ '(-a)-a[auto-setup NNN_FIFO]'
'(-A)-A[disable dir auto-select]'
'(-b)-b[bookmark key to open]:key char'
'(-c)-c[cli-only opener]'