Last active
December 29, 2020 00:49
-
-
Save andreigec/ddd8d287fdffbf86dff14e44647c1b71 to your computer and use it in GitHub Desktop.
setup wsl 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#update | |
sudo apt-get update && sudo apt-get upgrade | |
#installs + zsh | |
sudo apt-get install fonts-powerline vim curl git make file build-essential -y && \ | |
cd ~ && \ | |
mkdir homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew && \ | |
export PATH=~/homebrew/bin:$PATH && \ | |
sudo apt-get install zsh -y && \ | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" && \ | |
sudo chsh -s /bin/zsh && \ | |
echo 'if [ -t 1 ]; then exec zsh; fi' > ~/.profile && \ | |
# cat /etc/pam.d/chsh | sudo sed s/required/sufficient/i > .tmp.sh && sudo mv .tmp.sh /etc/pam.d/chsh && \ | |
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k && echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc && \ | |
echo 'export DOCKER_BUILDKIT=0' >> ~/.zshrc && \ | |
echo 'export COMPOSE_DOCKER_CLI_BUILD=0' >> ~/.zshrc && \ | |
echo 'DockerResourcesBin="/mnt/c/Program Files/Docker/Docker/resources/bin"' >> ~/.zshrc && \ | |
echo 'export PATH=$PATH:$DockerResourcesBin' >> ~/.zshrc | |
#nodejs | |
curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash - && \ | |
sudo apt-get install -y nodejs | |
sudo npm i -g yarn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment