[SOLVED] Check if it is Graphic Terminal And it's not the Login Shell
by Nick-us from LinuxQuestions.org on (#4WPCE)
Problem
I have ~./bashrc commands that can't be executed by Login Shell
So I need an IF to check if the user is in a non-login shell or Graphical Terminal and not in the first Terminal where we log in, which I call Login Shell or Pure Shell or Original Shell, because I don't know his name.
I hope you understand my question!
I want to use an IF to know if it's Login Shell OR non-login shell
Every help is welcome!


I have ~./bashrc commands that can't be executed by Login Shell
So I need an IF to check if the user is in a non-login shell or Graphical Terminal and not in the first Terminal where we log in, which I call Login Shell or Pure Shell or Original Shell, because I don't know his name.
I hope you understand my question!
I want to use an IF to know if it's Login Shell OR non-login shell
Every help is welcome!