github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/contrib/syntax/nano/README.md (about) 1 Dockerfile.nanorc 2 ================= 3 4 Dockerfile syntax highlighting for nano 5 6 Single User Installation 7 ------------------------ 8 1. Create a nano syntax directory in your home directory: 9 * `mkdir -p ~/.nano/syntax` 10 11 2. Copy `Dockerfile.nanorc` to` ~/.nano/syntax/` 12 * `cp Dockerfile.nanorc ~/.nano/syntax/` 13 14 3. Add the following to your `~/.nanorc` to tell nano where to find the `Dockerfile.nanorc` file 15 ``` 16 ## Dockerfile files 17 include "~/.nano/syntax/Dockerfile.nanorc" 18 ``` 19 20 System Wide Installation 21 ------------------------ 22 1. Create a nano syntax directory: 23 * `mkdir /usr/local/share/nano` 24 25 2. Copy `Dockerfile.nanorc` to `/usr/local/share/nano` 26 * `cp Dockerfile.nanorc /usr/local/share/nano/` 27 28 3. Add the following to your `/etc/nanorc`: 29 ``` 30 ## Dockerfile files 31 include "/usr/local/share/nano/Dockerfile.nanorc" 32 ```