Don't connect to tmux in PhpStorm terminal
This commit is contained in:
parent
91d7ca5005
commit
211ea05c0e
|
@ -2,8 +2,16 @@ _not_inside_tmux() {
|
|||
[[ -z "$TMUX" ]]
|
||||
}
|
||||
|
||||
_not_inside_phpstorm() {
|
||||
if is_macos; then
|
||||
[[ "$TERM_PROGRAM" != "" ]]
|
||||
elif is_linux; then
|
||||
[[ "$TERMINAL_EMULATOR" != "JetBrains"* ]]
|
||||
fi
|
||||
}
|
||||
|
||||
ensure_tmux_is_running() {
|
||||
if _not_inside_tmux; then
|
||||
if _not_inside_tmux && _not_inside_phpstorm; then
|
||||
tat
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue