aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2021-02-09 17:29:48 -0600
committerMatt Singleton <matt@xcolour.net>2021-02-09 17:29:48 -0600
commit472ba71fd7e646ea82a332e0ecbe6a836512f28d (patch)
treebbaab03081b23a0313c4016464d863ebc1f2d6d5
parent75674f2c7479a5c2ba131e9513bdb0ec2c61ae7b (diff)
better file organization
-rwxr-xr-xdeploy.sh13
-rw-r--r--home/vimrc (renamed from vimrc)0
-rw-r--r--home/zshenv (renamed from zshenv)0
-rw-r--r--local/gitconfig-local (renamed from gitconfig-local)0
-rw-r--r--local/local.zsh (renamed from local.zsh)0
5 files changed, 8 insertions, 5 deletions
diff --git a/deploy.sh b/deploy.sh
index ba805a0..7908e5b 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -10,7 +10,7 @@ xcache="${XDG_CACHE_HOME:-${HOME}/.cache}"
xdata="${XDG_DATA_HOME:-${HOME}/.local/share}"
xconfig="${XDG_CONFIG_HOME:-${HOME}/.config}"
-# deploy
+# deploy to XDG dirs
mkdir -p "${xcache}/zsh"
mkdir -p "${xdata}/zsh"
cd config
@@ -24,13 +24,16 @@ do
done
cd ..
-for f in vimrc zshenv
+# deploy to home
+cd home
+for f in *
do
if [ -e ~/.${f} ]; then
- mv ~/.${f} dotfiles-backup/${f}
+ mv ~/.${f} ../dotfiles-backup/${f}
fi
ln -sf "$(pwd)/${f}" ~/.${f}
done
+cd ..
if [ ! -d ~/.vim/bundle/vundle ]; then
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
@@ -42,8 +45,8 @@ vim +BundleInstall +qall
vim +BundleClean +qall
if [ ! -e config/zsh/local.zsh ]; then
- cp local.zsh config/zsh/local.zsh
+ cp local/local.zsh config/zsh/local.zsh
fi
if [ ! -e config/git/config-local ]; then
- cp gitconfig-local config/git/config-local
+ cp local/gitconfig-local config/git/config-local
fi
diff --git a/vimrc b/home/vimrc
index 101caf0..101caf0 100644
--- a/vimrc
+++ b/home/vimrc
diff --git a/zshenv b/home/zshenv
index a573065..a573065 100644
--- a/zshenv
+++ b/home/zshenv
diff --git a/gitconfig-local b/local/gitconfig-local
index 8076467..8076467 100644
--- a/gitconfig-local
+++ b/local/gitconfig-local
diff --git a/local.zsh b/local/local.zsh
index 8b012e4..8b012e4 100644
--- a/local.zsh
+++ b/local/local.zsh