mirror of https://github.com/Icinga/icinga2.git
parent
916537b33a
commit
af906e2b8b
|
@ -329,7 +329,8 @@ Install the package vim-icinga2 with your distribution's package manager.
|
||||||
|
|
||||||
Debian/Ubuntu:
|
Debian/Ubuntu:
|
||||||
|
|
||||||
$ apt-get install vim-icinga2
|
$ apt-get install vim-icinga2 vim-addon-manager
|
||||||
|
$ vim-addon-manager -w install icinga2
|
||||||
|
|
||||||
RHEL/CentOS/Fedora:
|
RHEL/CentOS/Fedora:
|
||||||
|
|
||||||
|
@ -350,9 +351,8 @@ Test it:
|
||||||
|
|
||||||
Install the package nano-icinga2 with your distribution's package manager.
|
Install the package nano-icinga2 with your distribution's package manager.
|
||||||
|
|
||||||
Debian/Ubuntu:
|
**Note:** On Debian and Ubuntu the syntax files are installed with the `icinga2-common` package, and
|
||||||
|
enabled by default.
|
||||||
$ apt-get install nano-icinga2
|
|
||||||
|
|
||||||
RHEL/CentOS/Fedora:
|
RHEL/CentOS/Fedora:
|
||||||
|
|
||||||
|
@ -362,13 +362,11 @@ SLES/openSUSE:
|
||||||
|
|
||||||
$ zypper install nano-icinga2
|
$ zypper install nano-icinga2
|
||||||
|
|
||||||
Copy the `/etc/nanorc` sample file to your home directory.
|
In addition, for RPM based systems, make sure to enable the syntax extension, by copying the `/etc/nanorc`
|
||||||
|
sample file to your home directory. And including the `icinga2.nanorc` file.
|
||||||
|
|
||||||
$ cp /etc/nanorc ~/.nanorc
|
$ cp /etc/nanorc ~/.nanorc
|
||||||
|
$ vim ~/.nanorc
|
||||||
On Debian systems change `/usr/share/doc/icinga2-common-[x.x.x]/syntax/nano/icinga2.nanorc` to `/usr/share/nano/icinga2.nanorc`.
|
|
||||||
|
|
||||||
Then include the icinga2.nanorc file in your ~/.nanorc by adding the following line:
|
|
||||||
|
|
||||||
## Icinga 2
|
## Icinga 2
|
||||||
include "/usr/share/nano/icinga2.nanorc"
|
include "/usr/share/nano/icinga2.nanorc"
|
||||||
|
|
Loading…
Reference in New Issue