Skip to content

danyelvarejao/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instalação do WSL

Instalando a distro do WSL via PowerShell

wsl --install -d Ubuntu

Gerando chave ssh (github)

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>"

Instalando terminal ZSH

sudo apt install zsh -y

Instalando OH-MY-ZSH

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Instalando tema powerlevel10k (OH-MY-ZSH)

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

Instalando plugin zsh-autosuggestions (OH-MY-ZSH)

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

Instalando lazygit

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

Instalando NeoVIM

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/

Instalando Tmux

sudo apt install tmux

Diff So Fancy (pretty diffs)

sudo snap install diff-so-fancy

Alterando as configurações do ZSH e outros

cd ~/
git clone [email protected]:danyelvarejao/dotfiles.git .dotfiles
rm -rf .zshrc
mkdir .config
cd ~/.dotfiles
./install.sh

Removendo configurações

./uninstall.sh