Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Import-Module 'posh-git'
- Import-Module 'oh-my-posh'
- Set-Theme agnoster
- # Set l and ls alias to use the new Get-ChildItemColor cmdlets
- Set-Alias l Get-ChildItemColor -Option AllScope
- Set-Alias ls Get-ChildItemColorFormatWide -Option AllScope
- # Helper function to change directory to my development workspace
- # Change c:\ws to your usual workspace and everytime you type
- # in cws from PowerShell it will take you directly there.
- function cws { Set-Location c:\ws }
- # Helper function to set location to the User Profile directory
- function cuserprofile { Set-Location ~ }
- Set-Alias ~ cuserprofile -Option AllScope
- Set-PSReadlineOption -EditMode Emacs
- Set-PSReadlineKeyHandler -Key 'Ctrl+p' -Function HistorySearchBackward
- Set-PSReadlineKeyHandler -Key 'Ctrl+n' -Function HistorySearchForward
- Set-Alias -name g -value git
- function gh () {
- cd $(ghq list --full-path | peco)
- }
- Set-Alias -name open -value Invoke-Item
- function U {
- param
- (
- [int] $Code
- )
- if ((0 -le $Code) -and ($Code -le 0xFFFF))
- {
- return [char] $Code
- }
- if ((0x10000 -le $Code) -and ($Code -le 0x10FFFF))
- {
- return [char]::ConvertFromUtf32($Code)
- }
- throw "Invalid character code $Code"
- }
- $Env:Path += ";C:\Program Files (x86)\Yarn\bin"
- $Env:Path += ";C:\Program Files\dotnet"
Add Comment
Please, Sign In to add comment