aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-04-30 08:36:55 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-05-22 08:44:31 +0530
commit8f1fdcf3e8b7aad1df44bbcbeb4133fb3dd8064a (patch)
tree8b6bdab6365e5a18da916eb51cc800bedfa966b8 /plugins
parentb555887ca8960ee69e3810535fb0c90b3cc3ddfe (diff)
downloadnnn-8f1fdcf3e8b7aad1df44bbcbeb4133fb3dd8064a.tar.gz
Update docs
Diffstat (limited to 'plugins')
-rw-r--r--plugins/README.md6
-rwxr-xr-xplugins/getplugs3
2 files changed, 9 insertions, 0 deletions
diff --git a/plugins/README.md b/plugins/README.md
index 76931bd..9b1571c 100644
--- a/plugins/README.md
+++ b/plugins/README.md
@@ -19,6 +19,12 @@
| transfer | sh | curl | Upload current file to transfer.sh |
| upgrade | sh | wget | Upgrade to latest nnn version manually on Debian 9 Stretch |
+#### Installing plugins
+
+Download the `getplugs` plugin and execute it to get all the plugins. You can run it again later to update the plugins.
+
+Note that `getplugs` also downloads the launcher `nlaunch` which you have to drop somewhere in your `$PATH` manually.
+
#### File access from plugins
Plugins can access:
diff --git a/plugins/getplugs b/plugins/getplugs
index 6c74336..817d5aa 100755
--- a/plugins/getplugs
+++ b/plugins/getplugs
@@ -5,7 +5,10 @@
# Shell: POSIX compliant
# Author: Arun Prakash Jana
+mkdir -p ~/.config/nnn/plugins
+cd ~/.config/nnn/plugins
wget -nv --show-progress https://github.com/jarun/nnn/archive/master.tar.gz
tar -xf master.tar.gz
cp -vf nnn-master/plugins/* .
+cp -vf nnn-master/scripts/nlaunch/nlaunch .
rm -rf nnn-master/ master.tar.gz README.md