From 26aa49a9bdf2fcab55b27a1c0c9277de9a34d00c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Thu, 11 Sep 2014 04:06:20 +0200 Subject: [PATCH] Update README.md --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 21e9f61..6d1ccbc 100644 --- a/README.md +++ b/README.md @@ -11,17 +11,18 @@ Tox-WeeChat requires [libtoxcore][3] (and WeeChat) to work. After getting them, $ git clone https://github.com/haavardp/tox-weechat.git $ cd tox-weechat $ mkdir build && cd build - -Now, depending on where you want to install the plugin binary: - - To install to `~/.weechat/plugins` (recommended): `cmake -DHOME_FOLDER_INSTALL=ON ..` - - To install to `/usr/local/lib/weechat/plugins`: `cmake ..` - - To install to `/usr/lib/weechat/plugins`: `cmake -DCMAKE_INSTALL_PREFIX=/usr ..` - - To install somewhere else: `cmake -DINSTALL_PATH=/some/path ..` - -Next, install the plugin. You may need sudo for the last command, depending on install location. + $ cmake -DHOME_FOLDER_INSTALL=ON .. $ make $ make install +This installs the plugin binary `tox.so` in the recommended location `~/.weechat/plugins`. To install the plugin somewhere else, replace the cmake command above with either of these: + + - To install to `/usr/local/lib/weechat/plugins`: `cmake ..` + - To install to `/usr/lib/weechat/plugins`: `cmake -DCMAKE_INSTALL_PREFIX=/usr ..` + - To install a custom path: `cmake -DINSTALL_PATH=/some/path ..` + + You may also need to `sudo make install`, depending on permissions. + Usage ----- In WeeChat, load the plugin: `/plugin load tox`. In cases where WeeChat can't find the plugin, try specifying the full path to the binary. You should get a new buffer called tox. This is the core Tox buffer, where output from commands will appear.