I'm running tmux in my terminal. I've managed to get tmux to load different default settings based on the terminal emulator. Currently, I'm getting the terminal with:
echo $(basename "/"$(ps -f -p $(cat /proc/$(echo $$)/stat | cut -d \ -f 4) | tail -1 | sed 's/^.* //'))
That works for identifying the terminal emulator. The only issue is RubyMine and CLion use the same terminal. Is there anyway to determine which ide is running the terminal from a .zshsrc file?