Skip to content

Instantly share code, notes, and snippets.

@hagope
Last active December 8, 2022 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hagope/35652b5d4edd6dd21c1949120d62dfc2 to your computer and use it in GitHub Desktop.
Save hagope/35652b5d4edd6dd21c1949120d62dfc2 to your computer and use it in GitHub Desktop.

A collection of notes and scripts I use to set up my development environment in a new machine, specfically WSL2 terminal.

lazygit:

curl https://gist.githubusercontent.com/hagope/c56734a5ecd6ce1426eeb7f4f1b532ab/raw/48e16788a09affef8322cbd13031b99c0aa07546/git_tools.sh | bash

neovim:

curl https://gist.githubusercontent.com/hagope/0ee68f19028a9e96e2b88e65884e02cc/raw/25803927781ba3b74e5090d476c2f36f24538952/install_nvim.sh | bash

install node with nvm:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
nvm install 16

gh cli:

type -p curl >/dev/null || sudo apt install curl -y
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y

lazygit:

curl -o- https://gist.githubusercontent.com/hagope/c56734a5ecd6ce1426eeb7f4f1b532ab/raw/48e16788a09affef8322cbd13031b99c0aa07546/git_tools.sh | bash

anaconda:

wget https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh
bash Anaconda3-2022.10-Linux-x86_64.sh
source ~/anaconda3/bin/activate

neovim setup:

git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh

transition to neovim:

:call mkdir(stdpath('config'), 'p')
:exe 'edit '.stdpath('config').'/init.vim'

Add to nvim config:

set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc

ultimate vimrc:

git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh

add better-escape

cd ~/.vim_runtime/my_plugins
gh repo clone nvim-zh/better-escape.vim

add my_configs.vim:

wget -O ~/.vim_runtime/my_configs.vim https://gist.githubusercontent.com/hagope/60fa208d50291f328b0200b05ff8010d/raw/beaaf6b91860829cbaf09f6091a8dad272b13ac7/my_configs.vim

set up clipboard

update ~/.bash_aliases

wget -O ~/.bash_aliases https://gist.githubusercontent.com/hagope/79cc053f0fe7fa45aaf83eb88dceb65e/raw/1810bcb2b3fddd79f3098a23a3ca66ff12db5249/.bash_aliases

update this gist: gh gist edit 35652b5d4edd6dd21c1949120d62dfc2 hagope_setup.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment