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