- 1 Installing
- 2 Running WeeChat
- 3 Configuration
- 4 Connecting to a server
- 5 Creating a Server profile
- 6 Configuring SSL
- 7 Tips and Tricks
- 8 Getting Help
- 9 External Links
is available in the [extra] repo. Install by running:
# pacman -S weechat
WeeChat is going to have multiple interfaces at some point, run weechat-[interface] to start WeeChat.
As WeeChat currently only has a Ncurses interface the command to start WeeChat is:
Errors loading plugins
You may see output like the following in the main window after starting weechat:
12:29:37 =!= | Error: unable to load plugin "/usr/lib/weechat/plugins/tcl.so": libtcl8.6.so: cannot open shared object file: No such file or directory 12:29:37 =!= | If you're trying to load a script and not a C plugin, try command to load scripts (/perl, /python, ...) 12:29:37 =!= | Error: unable to load plugin "/usr/lib/weechat/plugins/ruby.so": libruby.so.2.0: cannot open shared object file: No such file or directory 12:29:37 =!= | If you're trying to load a script and not a C plugin, try command to load scripts (/perl, /python, ...) 12:29:37 | Plugins loaded: alias, aspell, charset, fifo, guile, irc, logger, lua, perl, python, relay, rmodifier, script, xfer
The default configuration for weechat attempts to load all plugins found in /usr/lib/weechat/plugins which in this case includes both tcl and ruby. These packages are not required by the weechat package and may not be installed on your machine. There are two options if these errors bother you:
- Install tcl, ruby from the official repositories.
- Or, run
/set weechat.plugin.autoload "*,!tcl,!ruby"which will prevent loading those plugins with a bang (!) prefix.
You can configure WeeChat in 3 ways: using WeeChat's internal commands; using iset; or by editing the .conf files directly. WeeChat will automatically save settings on exit or when you run
/save, so if you are editing a .conf file in an editor, be sure to run
/reload from the console before exiting, otherwise your changes will be lost.
You can get a list of all configurable options by typing
/set in the weechat buffer window. Since there are nearly 600 default configurable options, you can search through them with a wildcard syntax:
/set irc.server.* or
/set *server* as an example. You can get help on each option with the
For a more convenient method, install the iset script. If you have weechat 0.3.9, run:
/script install iset.pl
In older versions, use
/weeget install iset, or download iset.pl into your
~/.weechat/perl/autoload directory manually.
to get a buffer with all configuration options.
The .conf files for WeeChat are saved to
~/.weechat. These files are not commented. Detailed information can be found within the program itself (see Internally above), or WeeChat's user guide.
Connecting to a server
You can connect to a IRC server by using /connect.
Or if there is already a Server setup you can use:
Creating a Server profile
If you plan on connecting to a server more than once it may be beneficial to create a Server.
/server add example irc.example.net/6667
Would create the server example which would connect to irc.example.net on port 6667
See the WeeChat documentation and /help server for more information.
If you're making a server with /server, add the SSL port (usually 6697) and -ssl to the end of the line. For example:
/server add freenode chat.freenode.net/6697 -ssl
You can do the same thing if using /connect.
/connect chat.freenode.net/6697 -ssl
Tips and Tricks
WeeChat can be upgraded without disconnecting from the IRC servers (non-SSL connections only):
This will load the new WeeChat binary and reload the current configuration.
Aliases can be created to simplify commonly executed commands. A nice example is Wraithan's smart filter alias:
First, we need to enable smart filters:
/set irc.look.smart_filter "on"
Next, we will create the sfilter alias:
/alias sfilter filter add irc_smart_$server_$channel irc.$server.$channel irc_smart_filter *
We can now type
in any buffer, and the smart filter will only be enabled for that buffer.
The following alias will remove a previously enabled smart filter in the current buffer:
Add the alias:
/alias rmsfilter filter del irc_smart_$server_$channel
and execute it by
Some helpful bindings:
To use ctrl-left/right arrow keys to jump to next/previous words on the input line:
/key bind meta2-1;5D /input move_previous_word /key bind meta2-1;5C /input move_next_word
SSH connection lost when idle
If you're connecting to your WeeChat through a remote shell using SSH, for example running it in screen or tmux you might experience getting disconnected after a while when idle. There are multiple factors in play why this might happen, but the easiest way to change this is to force the connection to be kept alive by appending this to your SSH-configuration on the remote shell. This has nothing to do with WeeChat itself, but losing connection when idle won't happen with it's alternative irssi by default, and thus is a common situation for those converting to WeeChat.
Or just have a look at Mosh
To access WeeChat's built-in help, simply type
and the help will be displayed in the main buffer (usually buffer 1).