wsl --install -d Ubuntu
ssh-keygen -t rsa -b 4096 -C "[email protected]"
more ~/.ssh/id_rsa.pub
- Copie a chave que aparecer no seu terminal
- Acesse o link: https://github.com/settings/keys)
- Clique em new SSH key
- Coloque um título para sua chave, exemplo: Danyel-Ubuntu-WSL
- Cole a chave no campo Key
- Clique em Add SSH Key
git config --global user.name "<YOUR_USERNAME>"
git config --global user.email "<YOUR_EMAIL>"
sudo apt install zsh -y
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
sudo tar xf lazygit.tar.gz -C /usr/local/bin lazygit
rm -rf lazygit.tar.gz
sudo apt update
sudo apt install python3-pip
pip install pynvim
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
- Reopen terminal
nvm install --lts
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt-get update
sudo apt-get install neovim
- Instalando LSP Servers
npm i -g tree-sitter-cli
- Instalando Rust
mkdir -p ~/.local/bin
curl -L https://github.com/rust-lang/rust-analyzer/releases/latest/download/rust-analyzer-x86_64-unknown-linux-gnu.gz | gunzip -c - > ~/.local/bin/rust-analyzer
chmod +x ~/.local/bin/rust-analyzer
- Instalando Plugins Dependencies
sudo apt install fd-find
sudo apt-get install ripgrep
- Fix clipboard (copy/paste) using win32yank.exe
sudo apt install unzip
curl -sLo/tmp/win32yank.zip https://github.com/equalsraf/win32yank/releases/download/v0.0.4/win32yank-x64.zip
unzip -p /tmp/win32yank.zip win32yank.exe > /tmp/win32yank.exe
chmod +x /tmp/win32yank.exe
sudo mv /tmp/win32yank.exe /usr/local/bin/
sudo apt install tmux
sudo snap install diff-so-fancy
cd ~/
git clone [email protected]:danyelvarejao/dotfiles.git .dotfiles
rm -rf .zshrc
mkdir .config
cd ~/.dotfiles
./install.sh
./uninstall.sh