diff --git a/install.sh b/install.sh index e9882cf..de15edb 100755 --- a/install.sh +++ b/install.sh @@ -1,9 +1,18 @@ #!/bin/bash -[ ! -d "$HOME/.vim/" ] && mkdir "$HOME/.vim" +# make these homey paths +mkdir -pv "$HOME/.vim" "$HOME/.local/"{bin,lib} "$HOME/.config" + +# find our dotfiles repo +REPOPATH=$(find "$HOME" -type d -iname 'dotfiles') + +# copy our files +cp "$REPOPATH/bash/bashrc" "$HOME/.bashrc" +cp "$REPOPATH/bash/bash_profile" "$HOME/.bash_profile" +cp "$REPOPATH/tmux/tmux.conf" "$HOME/.tmux.conf" +cp "$REPOPATH/git/gitconfig" "$HOME/.gitconfig" +cp "$REPOPATH/vim/vimrc" "$HOME/.vim/vimrc" + +# link scripts dir +ln -sv "$REPOPATH/scripts" "$HOME/.local/" -cp bash/bashrc ~/.bashrc -cp bash/bash_profile ~/.bash_profile -cp tmux/tmux.conf ~/.tmux.conf -cp git/gitconfig ~/.gitconfig -cp vim/vimrc ~/.vim/vimrc