diff --git a/README.md b/README.md index 8f8843a..94e73a8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,9 @@ -Install +Install Unix +Warning this install will override any dotfiles and the full vim bundle directory! +``` git clone https://github.com/AdeAttwood/Dotfiles.git ~/.dotfiles +chmod +x ~/.dotfiles/install/install_unix.sh +~/.dotfiles/install/install_unix.sh +``` diff --git a/install/install_unix.sh b/install/install_unix.sh old mode 100644 new mode 100755 index 7915782..54a9ff1 --- a/install/install_unix.sh +++ b/install/install_unix.sh @@ -10,8 +10,16 @@ ln -sf ~/.dotfiles/dotfiles/Xresources ~/.Xresources # Link to the tmuxinator dir ln -sf ~/.dotfiles/dotfiles/tmuxinator ~/.tmuxinator -# Make vim dir tree -mkdir ~/.vim/autoload ~/.vim/bundle/ -# Link to vim autoload plugin +# Link to vim plugin autoloader +mkdir -p ~/.vim/autoload ln -sf ~/.dotfiles/dotfiles/vim/autoload/pathogen.vim ~/.vim/autoload/pathogen.vim +# Install vim plugins +rm -rf ~/.vim/bundle +mkdir -p ~/.vim/bundle +cd ~/.dotfiles +git submodule init +git submodule update +ln -sf ~/.dotfiles/dotfiles/vim/bundle/* ~/.vim/bundle +cd ~/ +echo "All dotfiles have been installed"