add scripts dir

This commit is contained in:
James Dixon 2020-05-27 13:06:49 -04:00
parent 7643cba0d1
commit 86834a0fef

View File

@ -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