diff options
author | David Runge <david.runge@native-instruments.de> | 2018-04-17 18:07:44 +0200 |
---|---|---|
committer | David Runge <david.runge@native-instruments.de> | 2018-04-17 18:07:44 +0200 |
commit | bd75ccc4f85528f7c663a12c0ee58593d1c9de5e (patch) | |
tree | a127c07eeba01610ee709cdb33e3fce5cbe1e53e | |
parent | e7db8ce86d94a042d6e1d5caa0bc2272e28c300b (diff) | |
download | dotfiles-bd75ccc4f85528f7c663a12c0ee58593d1c9de5e.tar.gz dotfiles-bd75ccc4f85528f7c663a12c0ee58593d1c9de5e.tar.bz2 dotfiles-bd75ccc4f85528f7c663a12c0ee58593d1c9de5e.tar.xz dotfiles-bd75ccc4f85528f7c663a12c0ee58593d1c9de5e.zip |
.zsh.after/export.zsh: Fixing export of TERM for tmux on macOS and TMUX_TMPDIR on macOS.
-rw-r--r-- | .zsh.after/export.zsh | 4 |
1 files 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 |