diff --git a/powershell/Profile.ps1 b/powershell/Profile.ps1 new file mode 100644 index 0000000..cd9e450 --- /dev/null +++ b/powershell/Profile.ps1 @@ -0,0 +1,9 @@ +# Fix input/output encoding to be UTF-8 +# This might not be needed on PowerShell Core? +#$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding + +Set-PSReadlineOption -BellStyle None + +#Get-Content -Path "$env:USERPROFILE\dotfiles\windows\aliases.ps1" -Raw | Invoke-Expression + +Import-Module posh-git diff --git a/powershell/aliases.ps1 b/powershell/aliases.ps1 new file mode 100644 index 0000000..440267e --- /dev/null +++ b/powershell/aliases.ps1 @@ -0,0 +1,9 @@ +function Cake-Init { + Invoke-WebRequest https://cakebuild.net/download/bootstrapper/windows -OutFile build.ps1 +} + +New-Alias Cake .\build.ps1 + +#New-Alias ssh "$env:PROGRAMFILES\Git\usr\bin\ssh.exe" +#New-Alias ssh-agent "$env:PROGRAMFILES\Git\usr\bin\ssh-agent.exe" +#New-Alias ssh-add "$env:PROGRAMFILES\Git\usr\bin\ssh-add.exe"