diff options
author | Matt Singleton <matt@xcolour.net> | 2021-02-09 17:29:48 -0600 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2021-02-09 17:29:48 -0600 |
commit | 472ba71fd7e646ea82a332e0ecbe6a836512f28d (patch) | |
tree | bbaab03081b23a0313c4016464d863ebc1f2d6d5 | |
parent | 75674f2c7479a5c2ba131e9513bdb0ec2c61ae7b (diff) |
better file organization
-rwxr-xr-x | deploy.sh | 13 | ||||
-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
@@ -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/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 |