Configure bash_profile for one single terminal emulator

Posted by Hugo on Super User See other posts from Super User or by Hugo
Published on 2014-08-19T02:34:15Z Indexed on 2014/08/19 4:24 UTC
Read the original article Hit count: 252

Filed under:
|
|

I'm using a new terminal emulator. Terminology is the E17 default terminal, and it have a great command, $ tyls with is a "graphical" $ ls

I want to create an alias just for this terminal, because the command "tyls" don't make sense to konsole, rxvt or other terminals.

I'm thinking in some kind of "if" in ~/.bash_profile to test if I'm on terminology and then run the following command:

alias ls="tyls"

But how can I test if I'm in terminology but not xterm? Can someone help me?

Thanks!

© Super User or respective owner

Related posts about linux

Related posts about command-line