diff options
author | johannst <stoelp@eit.uni-kl.de> | 2017-05-01 23:11:39 +0200 |
---|---|---|
committer | johannst <stoelp@eit.uni-kl.de> | 2017-05-01 23:11:39 +0200 |
commit | 56bcf61245de64ff693c1cd05a5a3fc5430a9538 (patch) | |
tree | b4354e421aa3596b1aa7dc5533c05db6c545ad73 /install | |
parent | 1332a7dcb40dbd6b49af084dcd91639ffc846b16 (diff) | |
download | dotfiles-56bcf61245de64ff693c1cd05a5a3fc5430a9538.tar.gz dotfiles-56bcf61245de64ff693c1cd05a5a3fc5430a9538.zip |
Changed tmux.conf installer to handle existing ~/.tmux.conf files if existent
Diffstat (limited to 'install')
-rwxr-xr-x | install | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 } |