1
1
Fork 0
dotfiles/init.sh
2017-05-02 10:08:56 -05:00

41 lines
1.2 KiB
Bash

#!/bin/bash
echo "-= Installing System Dependencies =-"
brew install zsh tmux neovim/neovim/neovim python3 ag node
brew tap caskroom/cask
brew cask install iterm2
npm -g install instant-markdown-d
echo "-= Installing Fonts =-"
brew tap caskroom/fonts
brew cask install font-fira-code
echo "-= Assigning Zsh as Default Shell =-"
chsh -s $(which zsh)
echo "-= Upgrading NeoVim with Python and Package Manager =-"
pip3 install neovim
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
echo "-= Setting Zsh as default shell =-"
chsh -s /usr/local/bin/zsh
echo "-= Setting NeoVim as default editor =-"
export EDITOR='nvim'
echo "-= Removing any existing configs =-"
rm -rf ~/.vim ~/.vimrc ~/.zshrc ~/.tmux ~/.tmux.conf ~/.config/nvim 2> /dev/null
echo "-= Creating necessary directories =-"
mkdir -p ~/.config ~/.config/nvim
echo "-= Symlinking new configs =-"
ln -s ~/dotfiles/zshrc ~/.zshrc
ln -s ~/dotfiles/tmux.conf ~/.tmux.conf
ln -s ~/dotfiles/vimrc ~/.config/nvim/init.vim
ln -s ~/dotfiles/gitignore ~/.gitignore
echo "-= Setting Global GitIgnore =-"
git config --global core.excludesfile ~/.gitignore
echo "-= Log out and Log Back In to see changes =-"