From bd75ccc4f85528f7c663a12c0ee58593d1c9de5e Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 17 Apr 2018 18:07:44 +0200 Subject: .zsh.after/export.zsh: Fixing export of TERM for tmux on macOS and TMUX_TMPDIR on macOS. --- .zsh.after/export.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.zsh.after/export.zsh b/.zsh.after/export.zsh index dcc16b9..e0bdf6d 100644 --- a/.zsh.after/export.zsh +++ b/.zsh.after/export.zsh @@ -1,5 +1,5 @@ # use xterm-color anywhere. Sane default for color and termite -if [[ -n $TMUX ]];then +if [[ -n $TMUX ]] && [[ $VENDOR != "apple" ]];then export TERM="tmux-256color" elif [[ -n $STY ]];then export TERM="screen-256color" @@ -58,7 +58,7 @@ export GPG_AGENT_INFO="" export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" # tmux -if [[ $UID -ne 0 ]]; then +if [[ $UID -ne 0 ]] && [[ $VENDOR != "apple" ]]; then export TMUX_TMPDIR="$XDG_RUNTIME_DIR/" fi -- cgit v1.2.3-70-g09d2