Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using IRSSI and I wonder how can I pass my IRC channel's passwords to the IRSSI config file (~/.irssi/config) without writing them directly in the file.

In Mutt I've an awk command that queries a local file in my encrypted home folder, something like this:

set my_pass1=`awk '/fradeve_gmail:/ {print $2}' ~/.mutt/muttpass`
set my_pass2=`awk '/fradeve_inventati:/ {print $2}' ~/.mutt/muttpass`

Is there a similar solution for IRSSI?

PS: obviously I don't want to keep the IRSSI config file in my encrypted home :)

share|improve this question

migrated from Jan 9 '12 at 18:00

This question came from our site for system and network administrators.

You could keep your irssi config in the same encrypted location. – grawity Jan 9 '12 at 18:05
Why do you "obviously" not want to store the irssi config in the encrypted space? You could symlink it to the irssi config directory. – Daniel Andersson Apr 17 '12 at 7:55

2 Answers 2

Depending how you store your passwords? If you just have them in the autosendcmd, you could do the same trick you do with awk.

See for an example:

/NETWORK ADD -autosendcmd "/^msg nickserv ident pass;wait 2000" OFTC
share|improve this answer
could you expand your answer a little bit more?, I've not find a way to do it with autosendcmd =/ – chilicuil Jun 2 '13 at 5:31
See edit - does that help? – zigdon Jun 8 '13 at 8:29

I was trying to solve the exact same problem - it seems you can't easily pass bash variables to the irssi config. Storing passwords in plaintext files or environment variables wouldn't be a good idea in the first place.

In case you are connecting to freenode you could use either SASL or CERTFP.
Here's a tutorial that shows how to set up SASL (scroll down to the scripts section).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.