Which environment setting in the zsh shell will allow me to find whether I am in the x-server or if I am in the console? I am trying to find a way to implement having different setting in my .zshrc for whenever I am in my terminal emulator and whenever I am in my tty/console.
Basically I will have,
(pseudocode)
if(current shell session is in console)
[
implement PROMPT x
]else[
implement PROMPT Y
]
$DISPLAY
? – Ignacio Vazquez-Abrams Jun 23 '18 at 23:50