diff --git a/README.md b/README.md index d2f89e4e..9083f9a8 100644 --- 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, / and q suffice. Press ? 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 ?. #### 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. diff --git a/plugins/README.md b/plugins/README.md index 9b1571c2..544d2b89 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -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 diff --git a/plugins/getplugs b/plugins/getplugs index 817d5aa3..14184c37 100755 --- a/plugins/getplugs +++ b/plugins/getplugs @@ -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