Install Windows Subsystem for Linux Version 2 from powershell
wsl --install
wsl --list --verbose
Install Linux distro
wsl --install -d ubuntu
Install GIT
sudo apt-get install git
Setup Credentials
echo 'https://${USER}:${TOKEN}@github.com' > ~/.git-credentials
Install Zsh
sudo apt install zsh
Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
ZSH Plugins
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
Remove default theme
rm ~/.oh-my-zsh/themes/agnoster.zsh-theme
Automated git clone with backup
git clone --bare https://github.com/BlazeIsClone/dotfiles.git $HOME/.dotfiles
function config {
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@
}
mkdir -p .dotfiles-backup
config checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dot files.";
config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .dotfiles-backup/{}
fi;
config checkout
config config status.showUntrackedFiles no