irssi-import / bugs.irssi.org

bugs.irssi.org archive
https://github.com/irssi/irssi/issues
0 stars 0 forks source link

Command line option for config file #835

Closed irssibot closed 12 years ago

irssibot commented 12 years ago

I have occasion to use two different config files for irssi, which is currently a bit of a pain to do (renaming the file I want each time, keeping track of which file is currently the actual config...) It would be much simpler to be able to start irssi with a command line option allowing me to name the config file I want it to use for that session.

Thanks, MildBill

irssibot commented 12 years ago

This is already possible.

└[~]> irssi --help Usage: irssi [OPTION?]

Help Options: -?, --help Show help options

Application Options: --config=PATH Configuration file location (~/.irssi/config) --home=PATH Irssi home dir location (~/.irssi) -c, --connect=SERVER Automatically connect to server/network -w, --password=PASSWORD Autoconnect password -p, --port=PORT Autoconnect port -!, --noconnect Disable autoconnecting -n, --nick Specify nick to use -h, --hostname Specify host name to use -d, --dummy Use the dummy terminal mode -v, --version Display irssi version

If you want to use different configs, but the same .irssi dir, simply use eg --config=~/.irssi/config2 to point irssi at a specfic config. If you'd prefer to use different irssi directories, use eg. --home=~/.irssi-foobar to point irssi at a specific directory (it'll then look for its config file in that directory along with its script directory etc.)
irssibot commented 12 years ago