Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felipementel/my-environment
https://github.com/felipementel/my-environment
chocolatey
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/felipementel/my-environment
- Owner: felipementel
- License: unlicense
- Created: 2020-11-13T16:30:06.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-17T14:57:07.000Z (5 months ago)
- Last Synced: 2024-08-17T16:01:45.140Z (5 months ago)
- Topics: chocolatey
- Language: PowerShell
- Homepage:
- Size: 70.3 KB
- Stars: 13
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 1. Chocolatey :boom:
+ Abra o powershell como adminstrador;
+ Execute o comando abaixo;````
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/felipementel/my-environment/main/chocolatey.ps1'))
````````
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/felipementel/my-environment/main/winget.ps1'))
````
+ Faça um café.PS: Lembrar de trocar o path do PowerShell Core no Windows Terminal para C:\Program Files\PowerShell\7\pwsh.exe
# 2. Habilitar Windows + V :notes:
# 3. Configurar no git :cop:
````git
git config --global init.defaultBranch maingit config --global user.name 'Felipe Augusto'
git config user.email 'EMAIL' (por pasta de projeto)
````# 4. O que instalar no WSL2? :triangular_flag_on_post:
### apt-get install
````
sudo apt-get install mc htop jq dotnet-sdk-8.0 && curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bashkubernetes-cli helm
````````
https://get.docker.com/
````
Para testar:
````
docker container run hello-world
````Caso dê problema de permissão, execute os comandos abaixo
Add docker group
````
$ sudo groupadd docker
````
Add your current user to docker group
````
$ sudo usermod -aG docker $USER
````
Switch session to docker group
````
$ newgrp - docker
````
Run an example to test
````
$ docker run hello-world
````
=====# POWERSHELL
## Install Terminal Icons
````
Install-Module -Name Terminal-Icons -Repository PSGallery
````
## Install OhMyPosh
````
$ winget install JanDeDobbeleer.OhMyPosh -s winget
````
````
$ New-Item -Path $PROFILE -Type File -Force
````
````
$ oh-my-posh font install
````
OU instale direto a fonte
````
$ oh-my-posh font install meslo
````
````
$ notepad $PROFILE
````
Se não conseguir criar o arquivo, execute o comando abaixo primeiro e depois execute o comando acima
````
$ New-Item -Path $PROFILE -Type File -Force
````Feito a criação do arquivo, adicione os itens abaixo no arquivo
````
oh-my-posh init pwsh --config 'C:\Users\felipe.augusto\AppData\Local\Programs\oh-my-posh\themes\craver.omp.json' | Invoke-Expression
Import-Module -Name Terminal-Icons
````Comando para recarregar:
````
. $PROFILE
````
E não se esqueça !!!# !!! Configurar Fonte !!!
## Ubuntu
````
sudo su
````
````
wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh
````
````
chmod +x /usr/local/bin/oh-my-posh
````Agora precisamos criar os arquivos que ficam as configurações
````
touch .bashrc
````
````
vi .bashrc
````
Coloque esses valores dentro do arquivo
````
eval "$(oh-my-posh --init --shell bash --config /mnt/c/users/felipe.augusto/AppData/Local/Programs/oh-my-posh/themes/craver.omp.json)"
````
Saia do modo SU
````
exit
````
Recarregue o terminal
````
exec bash
````E não se esqueça !!!
# !!! Configurar Fonte !!!
> Git
````
eval "$(oh-my-posh --init --shell bash --config $HOME/AppData/Local/Programs/oh-my-posh/themes/clean-detailed.omp.json)"
````# 6. O que instalar via npm? :telephone_receiver:
````node
npm -g i typescript ts-node postman newman-parallel spectral
````
List global installed packages:
````node
npm list -g --depth 0
````# 7. Plugins no Visual Studio :mushroom:
> Sonar Lint> Fine Code Coverage