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
Also here is a picture:
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
Also here is a picture:
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
:
mkdir ~/bin
echo -e "#/bin/sh\nscreen /usr/bin/irssi" > ~/bin/irssi
chmod a+x ~/bin/irssi
Then, remove the alias and add this line to your .bashrc
:
PATH=~/bin:$PATH
Kind of an odd solution, but maybe you can use a shell script compiler like shc to compile a shell script similar to that terdon suggested so that it is an executable?
I think it would then show the correct name.