From d902572db6811986f8454bb1c41a142c13509448 Mon Sep 17 00:00:00 2001 From: Adam Hellberg Date: Mon, 17 Feb 2020 10:30:29 +0100 Subject: [PATCH] Add PowerShell core profile files --- powershell/Profile.ps1 | 9 +++++++++ powershell/aliases.ps1 | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 powershell/Profile.ps1 create mode 100644 powershell/aliases.ps1 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" -- 2.54.0