summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall10
1 files changed, 8 insertions, 2 deletions
diff --git a/install b/install
index e9b9427..6c56295 100755
--- a/install
+++ b/install
@@ -78,11 +78,17 @@ function gitConfigInstaller() {
}
#}}}
-#{{{ tmuxConfigInstaller
+#{{{ tmuxConfigInstaller
function tmuxConfigInstaller() {
local tmuxconf=~/.tmux.conf
- ln -s $ABS_BASE_DIR/tmux.conf $tmuxconf
+ touch $tmuxconf
+ grep $gMagicNumber $tmuxconf > /dev/null 2>&1
+ if [[ $? = 0 ]]; then
+ return 1
+ fi
+ echo -e "\n# $gMagicNumber - Auto generated, do not delete or modify!" >> $tmuxconf
+ echo -e "source-file $ABS_BASE_DIR/tmux.conf" >> $tmuxconf
return 0
}