I have an alias for irssi:alias irssi="screen irssi. When I am running irssi in Konsole, the tab name shows up as "screen". Is there a way to make it display as "irssi"? My tab format on Konsole is: %D | %n

2 Answers
2

Probably the only way to do it is to create a script called irssi which launches screen irssi:

Copy the original irssi to irssi.orig:

sudo cp /usr/bin/irssi /usr/bin/irssi.orig

Create a script, called irssi which will launch the original irssi in screen:

sudo echo -e "#/bin/sh\nscreen /usr/bin/irssi.orig" > /usr/bin/irssi

Make the script executable

sudo chmod a+x /usr/bin/irssi

Remove the alias from your .bashrc

If you can't/don't want to make a system-wide change, you can do the same thing for your user alone. Create a ~/bin/ directory, make the same steps as above there, and add that directory to your $PATH:

Using a script makes the program name change to "bash". For example now my tab says "/usr/local/bin | bash". The script works, but just isn't reading what I want. Am I missing something? :/
–
user164810Jan 11 '13 at 21:11

Oh. No, I think it is I who is missing something. Apparently, Konsole takes the name from the actual process name, not the name of the command that is executed. Sorry, no idea how to get around that.
–
terdonJan 11 '13 at 21:16