Skip to content

Instantly share code, notes, and snippets.

@luisangelorjr
Last active September 17, 2024 11:21
Show Gist options
  • Save luisangelorjr/76b9d729023c8bd124874b036a53d7be to your computer and use it in GitHub Desktop.
Save luisangelorjr/76b9d729023c8bd124874b036a53d7be to your computer and use it in GitHub Desktop.
Um gist para instalar e configurar algumas tools que uso no meu dia a dia de dev
set number
set history=500
filetype plugin on
filetype indent on
set autoread
au FocusGained,BufEnter * checktime
set wildmenu
set ruler
set cmdheight=1
set backspace=eol,start,indent
set hlsearch
set lazyredraw
set showmatch
syntax enable
set background=dark
set encoding=utf-8
set fileencoding=utf-8
set ffs=unix,dos,mac
set expandtab
set smarttab
set shiftwidth=2
set tabstop=2
set ai
set si
set wrap
#!/bin/bash
## UPDATE
sudo apt update
sudo apt upgrade -y
sudo snap refresh
## BUILD-ESSENTIAL
sudo apt install build-essential -y
## APT
### CURL
sudo apt install curl -y
### VIM
sudo apt install vim -y
#### VIM CONFIG
wget https://gist.githubusercontent.com/luisangelorjr/f51b60655a91fe1ea933c9e8ce49c317/raw/5f00019c6ddfcffa0f302be1fad902266bd29067/.vimrc
mv .vimrc ~/.vimrc
### GIT
sudo apt install git -y
sudo apt install peek -y
## SNAP
sudo snap install code --classic
sudo snap install dbeaver-ce
sudo snap install htop
sudo snap install postman
### asdf
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.1
#### asdf config
echo >> ~/.bashrc
echo "## asdf" >> ~/.bashrc
echo ". \$HOME/.asdf/asdf.sh" >> ~/.bashrc
echo ". \$HOME/.asdf/completions/asdf.bash" >> ~/.bashrc
echo >> ~/.bashrc
source ~/.bashrc
##### asdf plugins
###### asdf plugin nodejs
####### asdf plugin nodejs dependencies
sudo apt install dirmngr gpg curl gawk -y
####### asdf plugin nodejs install
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf install nodejs latest
asdf global nodejs latest
###### asdf plugin java
####### asdf plugin java dependencies
sudo apt install curl unzip jq -y
####### asdf plugin java install
asdf plugin-add java https://github.com/halcyon/asdf-java.git
VAR_LATEST_JDK21=$(asdf list-all java | grep adoptopenjdk-21 | tail -1)
asdf install java $VAR_LATEST_JDK21
asdf global java $VAR_LATEST_JDK21
####### asdf plugin java config
echo >> ~/.bashrc
echo "### asdf plugin java | set java home" >> ~/.bashrc
echo ". ~/.asdf/plugins/java/set-java-home.bash" >> ~/.bashrc
echo >> ~/.bashrc
source ~/.bashrc
### CLT
##sudo snap install kubectl --classic
##sudo snap install microk8s --classic
# Clean
sudo apt autoremove -y
@luisangelorjr
Copy link
Author

luisangelorjr commented Dec 14, 2022

  1. Baixe o script clicando no botao de download zip
  2. Descompacte num local de sua preferencia
  3. Rode o comando chmod +x dev-start.sh apontando para o script para torna-lo executavel
  4. Rode o script com ./dev-start.sh

preciso verificar somente o comando source que nao esta carregando o contexto do bash dentro do script

Entao, por enquanto, rode o comando source ~/.bashrc depois de completar o script e reexecute o passo 4 acima

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