Skip to content

Instantly share code, notes, and snippets.

@luisangelorjr
Created December 14, 2022 18:53
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 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.10.2
#### 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_JDK17=$(asdf list-all java | grep adoptopenjdk-17 | tail -1)
asdf install java $VAR_LATEST_JDK17
asdf global java $VAR_LATEST_JDK17
####### 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