dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit eb1bfa56cc9b32d85d383139c9e0b1908b0b7c74
parent ed364e45efeffcdd86271a63a2005599c8d9ea21
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Wed, 19 Sep 2018 16:33:51 +0200

Do not start tmux automatically if no x server running

Diffstat:
Mzsh/zshrc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/zsh/zshrc b/zsh/zshrc @@ -100,7 +100,7 @@ fi ################# # TMUX -if [[ -z "$TMUX" ]] ;then # Test if tmux is running +if [[ -z "$TMUX" ]] && [[ -n "$DISPLAY" ]] ;then # Test if tmux is running ID="$( tmux ls | grep -vm1 attached | cut -d: -f1 )" # get the id of a deattached session if [[ -z "$ID" ]] ;then # if not available create a new one tmux new-session