Closed tblaschke closed 1 year ago
tmux autostart will mess with JetBrains products (and other IDE as well) on 2 occasions
When you start a new terminal from the terminal pane
When you start-up the IDE from GUI, ex: Dock & Application for macOS.
This will ping a notification
IntelliJ IDEA has failed to load the environment from '/bin/zsh'. Integration with tools that rely on environment variables may work incorrectly. Learn More
Solutions:
&& "$TERMINAL_EMULATOR" != "JetBrains-JediTerm"
will handle the terminal pane part.
&& -z "$INTELLIJ_ENVIRONMENT_READER"
will handle the start-up from GUI part.
Note:
This issue occur to me on VSCode start-up as well. This should be an another issue, but TL;DR I solve that with && "$__CFBundleIdentifier" != "com.microsoft.VSCode"
.
Let's roll with this till we arrive at a more ideal solution.
Proposed Changes
Do not autostart tmux if we start a terminal inside PyCharm or IntelliJ. Should also work for other JetBrains products.