sudo apt-get update
sudo apt-get install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Change default shell to zsh: https://evalcode.com/zsh-default-wsl-windows-10/
chsh -s $(which zsh)
https://github.com/mintty/wsltty/releases
sudo apt-get install tmux
Make tmux run by default (add to the top of ~/.zshrc)
alias tmux="tmux -2 -u"
if which tmux 2>&1 >/dev/null; then
test -z "$TMUX" && (tmux attach || tmux new-session)
fi
sudo apt-get install python-pip
sudo pip install powerline-status
Add powerline to ZSH (.zshrc)
if [[ -r /usr/local/lib/python2.7/dist-packages/powerline/bindings/zsh/powerline.zsh ]]; then
source /usr/local/lib/python2.7/dist-packages/powerline/bindings/zsh/powerline.zsh
fi
In ~/.tmux.conf
set-option -g default-shell /bin/zsh
set-environment -g POWERLINE_CONFIG_COMMAND /usr/local/bin/powerline-config
run-shell "powerline-daemon -q"
source "/usr/local/lib/python2.7/dist-packages/powerline/bindings/tmux/powerline.conf"
git config --global color.ui true
git config --global user.name "YOUR NAME"
git config --global user.email "[email protected]"
ssh-keygen -t rsa -b 4096 -C "[email protected]"
Add the contents of ~/.ssh/id_rsa.pub to Github https://github.com/settings/keys Verify github access
ssh -T [email protected]
sudo apt-get install neovim
Alias neovim
echo "alias vim=nvim" >> ~/.zshrc
source ~/.zshrc
Setup neovim
mkdir -p ~/.config/nvim
vim ~/.config/nvim/init.vim
Setup nvim to read from .vimrc
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc
Clone dotfiles to ~/dev/dotfiles
git clone [email protected]:evansagge/dotfiles.git
Symlink .vimrc and .vimrc.d
cd ~
ln -nfs ~/dev/dotfiles/vimrc .vimrc
ln -nfs ~/dev/dotfiles/vimrc.d .vimrc.d
Install Vundle https://github.com/VundleVim/Vundle.vim
cd ~
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
Open vim/nvim and install vim plugins
vim
:PluginInstall
Install Tmux plugin manager
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
Set .tmux.conf
ln -nfs ~/dev/dotfiles/tmux.conf .tmux.conf