Dotfiles/install/install_unix.sh

26 lines
720 B
Bash
Executable file

# Move to home dir
cd ~/
# Link dotfiles to the repo files
ln -sf ~/.dotfiles/dotfiles/bashrc ~/.bashrc
ln -sf ~/.dotfiles/dotfiles/tmux.conf ~/.tmux.conf
ln -sf ~/.dotfiles/dotfiles/vimrc ~/.vimrc
ln -sf ~/.dotfiles/dotfiles/Xresources ~/.Xresources
# Link to the tmuxinator dir
rm -rf ~/.tmuxinator
ln -sf ~/.dotfiles/dotfiles/tmuxinator ~/.tmuxinator
# 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"