From aa8f3c6ae80b355f423d6a3eb8ab105486797e8a Mon Sep 17 00:00:00 2001 From: Gaika Date: Sat, 1 May 2021 22:28:35 -0400 Subject: [PATCH] use env variables to detect inside tmux, fix #41 --- src/TerminalExtensions.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TerminalExtensions.jl b/src/TerminalExtensions.jl index 4dfe8bf..27dd0cf 100644 --- a/src/TerminalExtensions.jl +++ b/src/TerminalExtensions.jl @@ -137,7 +137,7 @@ function __init__() read(stdin, Char) - if startswith(itermname, "ITERM2") + if startswith(itermname, "ITERM2") || get(ENV, "LC_TERMINAL", "") == "iTerm2" && haskey(ENV, "TMUX") # Inform iTerm of the shell integration version and that we're julia write(stdout, iTerm2.shell_version_number())