Skip to content

Instantly share code, notes, and snippets.

@ivomachado
Last active July 22, 2017 21:36
Show Gist options
  • Save ivomachado/3a2b1ffd7765a889fecd16573537051f to your computer and use it in GitHub Desktop.
Save ivomachado/3a2b1ffd7765a889fecd16573537051f to your computer and use it in GitHub Desktop.
Meu profile do powershell
Set-ExecutionPolicy Bypass
Install-Module PSReadline
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/ivomachado/3a2b1ffd7765a889fecd16573537051f/raw/a306fa00a78ba4662cd42f331569ae2906bf68f3/profile.ps1')) | tee $profile
choco install nodejs -y
choco install mingw -y
choco install jdk8 -y
choco install 7zip -y
choco install VisualStudioCode -y
choco install python2 -y
choco install git -y
choco install poshgit -y
refreshenv
code --install-extesion Shan.code-settings-sync
((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/ivomachado/22a22c6940eb6d6744c432384495b6e8/raw/a63c712210efd60cbd742ddc35671864c65e92ba/settings.json')) | tee ~\AppData\Roaming\Code\User\settings.json
git config --global user.email "ivo.machado@outlook.com.br"
git config --global user.name "Ivo Machado"
npm install --global --production windows-build-tools
npm install --global node-gyp
Import-Module posh-git
function Coco ($file) {
java -jar ..\Coco.jar -frames .. $file
javac *.java
}
function Test-Coco($file) {
java Compile $file
}
Set-PSReadlineKeyHandler -Key Tab -Function Complete
function which($name)
{
Get-Command $name | Select-Object -ExpandProperty Definition
}
$PSDefaultParameterValues['*:Encoding'] = 'utf8'
$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment