From 8092a8a30e8213eb355a60e08def245e057039f3 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sun, 17 Aug 2014 01:28:14 +0900 Subject: [PATCH] setup.sh: prepare tmux.conf automatically --- setup.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/setup.sh b/setup.sh index 89c0d97..28b45b4 100755 --- a/setup.sh +++ b/setup.sh @@ -290,6 +290,14 @@ set -g mode-bg $tmux_bg_color set -g mode-fg $tmux_fg_color set -g pane-active-border-fg $tmux_bg_color __EOC__ + + _tmux_conf="$HOME"/.tmux.conf + if test -f "$_tmux_conf" + then + _warn "Tmux config file found. Skipping" + else + echo "source \"$DOTFILES_DIR/tmux.conf\"" >>"$_tmux_conf" + fi } ##############################