]> Sergey Matveev's repositories - nnn.git/commitdiff
Re-order installation section
authorArun Prakash Jana <engineerarun@gmail.com>
Mon, 14 Aug 2017 00:13:01 +0000 (05:43 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Mon, 14 Aug 2017 00:42:02 +0000 (06:12 +0530)
README.md

index 509abe4d9d2eef21028632180c0ce9eb91955521..c580bf35e8116219f6e52be2af3e083ec30f8dbe 100644 (file)
--- a/README.md
+++ b/README.md
@@ -22,7 +22,10 @@ Noice is Not Noice, a noicer fork...
 - [Features](#features)
 - [Performance](#performance)
 - [Installation](#installation)
+  - [Dependencies](#dependencies)
+  - [From a package manager](#from-a-package-manager)
   - [Release packages](#release-packages)
+  - [From source](#from-source)
 - [Usage](#usage)
   - [Cmdline options](#cmdline-options)
   - [Keyboard shortcuts](#keyboard-shortcuts)
@@ -130,23 +133,31 @@ Have fun with it! PRs are welcome. Check out [#1](https://github.com/jarun/nnn/i
 
 ### Installation
 
+#### Dependencies
+
 `nnn` needs libreadline, libncursesw (on Linux or ncurses on OS X) and standard libc.
 
-- Packages are available on
-  - [AUR](https://aur.archlinux.org/packages/nnn/)
-  - [Debian](https://packages.debian.org/search?keywords=nnn)
-  - [Homebrew](http://braumeister.org/formula/nnn)
-  - [Ubuntu PPA](https://launchpad.net/~twodopeshaggy/+archive/ubuntu/jarun/)
-- To cook yourself, download the [latest stable release](https://github.com/jarun/nnn/releases/latest) or clone this repository (*risky*). Then install the dependencies and compile (e.g. on Ubuntu 16.04):
+#### From a package manager
 
-      $ sudo apt-get install libncursesw5-dev libreadline6-dev
-      $ make
-      $ sudo make install
+- [AUR](https://aur.archlinux.org/packages/nnn/)
+- [Debian](https://packages.debian.org/search?keywords=nnn)
+- [Homebrew](http://braumeister.org/formula/nnn)
+- [Ubuntu PPA](https://launchpad.net/~twodopeshaggy/+archive/ubuntu/jarun/)
 
 #### Release packages
 
 Packages for Arch Linux, CentOS, Fedora and Ubuntu are available with the [latest stable release](https://github.com/jarun/nnn/releases/latest).
 
+#### From source
+
+To cook yourself, download the [latest stable release](https://github.com/jarun/nnn/releases/latest) or clone this repository (*risky*). Then install the dependencies and compile (e.g. on Ubuntu 16.04):
+
+      $ sudo apt-get install libncursesw5-dev libreadline6-dev
+      $ make
+      $ sudo make install
+
+`PREFIX` is supported, in case you want to install to a different location.
+
 ### Usage
 
 #### Cmdline options