Skip to content

Commit

Permalink
Run cmd as plugin now supported exported variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Jan 28, 2023
1 parent b80e047 commit 4f95796
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nnn.1
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ separated by \fI;\fR:
To run a plugin at startup, use the option `-P` followed by the plugin key.

NOTES:
1. Place $nnn in double quotes (\fB"$nnn"\fR)
1. Place $nnn (or exported variables) in double quotes (\fB"$nnn"\fR)
2. Use single quotes for $NNN_PLUG so "$nnn" is not interpreted
3. (Again) add \fB!\fR before the command
4. To disable directory refresh after running a \fIcommand as plugin\fR,
Expand Down
2 changes: 1 addition & 1 deletion plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export NNN_PLUG='m:-!|mediainfo "$nnn";t:-!|tree -ps;l:-!|ls -lah --group-direct
This option is incompatible with `&` (terminal output is masked for GUI programs) and ignores `*` (output is already paged for user).

Notes:
1. Place `$nnn` in double quotes (**`"$nnn"`**)
1. Place `$nnn` (or exported variables) in double quotes (**`"$nnn"`**)
2. Use single quotes for `$NNN_PLUG` so `"$nnn"` is not interpreted
3. (_Again_) add `!` before the command
4. To disable directory refresh after running a _command as plugin_, prefix with `-!`
Expand Down

0 comments on commit 4f95796

Please sign in to comment.