mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Pass current file name as first argument to custom scripts
This commit is contained in:
parent
74a0dc0a97
commit
042d008392
|
@ -421,6 +421,8 @@ Note that you may want to keep quotes disabled in this case.
|
|||
|
||||
#### run custom scripts
|
||||
|
||||
`nnn` can invoke custom scripts with the currently selected file name as argument 1.
|
||||
|
||||
Export the path to the custom executable script:
|
||||
|
||||
export NNN_SCRIPT=/usr/local/bin/nscript
|
||||
|
|
2
nnn.1
2
nnn.1
|
@ -263,7 +263,7 @@ screensaver.
|
|||
\fBNNN_QUOTE_ON:\fR wrap copied paths within single quotes. Useful for pasting
|
||||
names in the shell.
|
||||
.Pp
|
||||
\fBNNN_SCRIPT:\fR path to a custom script to run.
|
||||
\fBNNN_SCRIPT:\fR path to a custom script to invoke with currently selected file name as argument 1.
|
||||
.Bd -literal
|
||||
export NNN_SCRIPT=/usr/local/bin/nscript
|
||||
.Ed
|
||||
|
|
Loading…
Reference in a new issue