aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdeploy.sh19
-rw-r--r--xdg-config/tmux/tmux.conf (renamed from tmux.conf)0
2 files changed, 18 insertions, 1 deletions
diff --git a/deploy.sh b/deploy.sh
index 5ae9d85..ae88db5 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -6,7 +6,24 @@ rm -rf dotfiles-backup
mkdir -p dotfiles-backup
# deploy
-for f in vimrc gvimrc gitconfig gitignore zshrc zsh dircolors.conf tmux.conf hammerspoon
+if [ -z "$XDG_CONFIG_HOME" ];
+then
+ config_home="$HOME/.config"
+else
+ config_home="$XDG_CONFIG_HOME"
+fi
+cd xdg-config
+for d in *
+do
+ dest="$config_home/$d"
+ if [ -e "$dest" ]; then
+ mv "$dest" ../dotfiles-backup/$d
+ fi
+ ln -sf "$(pwd)/$d" "$dest"
+done
+cd ..
+
+for f in vimrc gvimrc gitconfig gitignore zshrc zsh dircolors.conf hammerspoon
do
if [ -e ~/.${f} ]; then
mv ~/.${f} dotfiles-backup/${f}
diff --git a/tmux.conf b/xdg-config/tmux/tmux.conf
index b1b98e0..b1b98e0 100644
--- a/tmux.conf
+++ b/xdg-config/tmux/tmux.conf