diff options
author | Matt Singleton <matt@xcolour.net> | 2021-02-04 10:42:52 -0600 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2021-02-04 10:43:43 -0600 |
commit | bfb0dd39dbf5c9b281abb7fce8b4f60bca0e7708 (patch) | |
tree | 8681cf49638f2447962a4baaaf08dba65e2b8c18 | |
parent | 96cd574530b812fa632e9408ae1db472c4262de1 (diff) |
use xdg basedir layout for tmux
-rwxr-xr-x | deploy.sh | 19 | ||||
-rw-r--r-- | xdg-config/tmux/tmux.conf (renamed from tmux.conf) | 0 |
2 files changed, 18 insertions, 1 deletions
@@ -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 |