]> Sergey Matveev's repositories - nnn.git/commitdiff
Update getplugs to set up nlauch
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 5 May 2019 02:50:35 +0000 (08:20 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 22 May 2019 03:14:19 +0000 (08:44 +0530)
README.md
plugins/README.md
plugins/getplugs

index d2f89e4e0e004214cfd6953aa0d56292ffc8af49..9083f9a8acf8a2836c0c5736c01c4a6e00c6a197 100644 (file)
--- a/README.md
+++ b/README.md
@@ -195,7 +195,7 @@ Option completion scripts for Bash, Fish and Zsh can be found in respective subd
 2. Configure [cd on quit](https://github.com/jarun/nnn/wiki/hacking-nnn#cd-on-quit).
 3. Optionally open all text files in `$EDITOR` (fallback vi): `export NNN_USE_EDITOR=1`
 4. Run `n`.
-5. For additional functionality [setup plugins](https://github.com/jarun/nnn/tree/master/plugins#installing-plugins) and the GUI app launcher [`nlaunch`](https://github.com/jarun/nnn/tree/master/scripts/nlaunch).
+5. For additional functionality [install plugins](https://github.com/jarun/nnn/tree/master/plugins#installing-plugins) and the GUI app launcher [`nlaunch`](https://github.com/jarun/nnn/tree/master/scripts/nlaunch).
 
 - Don't memorize keys. Arrows, <kbd>/</kbd> and <kbd>q</kbd> suffice. Press <kbd>?</kbd> for help on keyboard shortcuts anytime.
 - When you are ready for more, start [hacking `nnn`](https://github.com/jarun/nnn/wiki/hacking-nnn).
@@ -416,9 +416,7 @@ To lookup keyboard shortcuts at runtime, press <kbd>?</kbd>.
 
 #### PLUGINS
 
-To extend the capabilities of `nnn`, plugins are introduced. Plugins are scripts which `nnn` can communicate with and trigger. This mechanism fits perfectly with the fundamental design to keep the core file manager lean and fast, by delegating repetitive (but not necessarily file manager-specific) tasks to the plugins.
-
-Copy the [plugins](https://github.com/jarun/nnn/tree/master/plugins) of your interest to `~/.config/nnn/plugins`.
+To extend the capabilities of `nnn`, [plugins](https://github.com/jarun/nnn/tree/master/plugins) are introduced. Plugins are scripts which `nnn` can communicate with and trigger. This mechanism fits perfectly with the fundamental design to keep the core file manager lean and fast, by delegating repetitive (but not necessarily file manager-specific) tasks to the plugins.
 
 Use the pick plugin shortcut to visit the plugin directory and execute a plugin. Repeating the same shortcut cancels the operation and puts you back in the original directory.
 
index 9b1571c229dea804f344ac520c89d6b046d8e4f4..544d2b89f061e1e2ea441a12544ced4bd716195e 100644 (file)
@@ -21,9 +21,9 @@
 
 #### Installing plugins
 
-Download the `getplugs` plugin and execute it to get all the plugins. You can run it again later to update the plugins.
+Download the `getplugs` plugin and execute it anywhere to get all the plugins installed to `~/.config/nnn/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.
+**NOTE:** `getplugs` also downloads the launcher `nlaunch` and tries to place it at `/usr/local/bin/` using `sudo`. If it fails you have to place `nlauch` manually somewhere in your `$PATH`.
 
 #### File access from plugins
 
index 817d5aa381fe867799b9f6111dacda05e989b359..14184c37b9628055ecbaf4519ff165e46f397513 100755 (executable)
@@ -10,5 +10,5 @@ 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 .
+sudo mv -vf nnn-master/scripts/nlaunch/nlaunch /usr/local/bin/
 rm -rf nnn-master/ master.tar.gz README.md