Created
March 20, 2026 21:13
-
-
Save oxo42/d996f72d750e8b1bdf41384e2f8e1b8b to your computer and use it in GitHub Desktop.
Powershell profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Console]::OutputEncoding = [Text.Encoding]::UTF8 | |
| Remove-Item Alias:wget -ErrorAction SilentlyContinue | |
| Remove-Item Alias:curl -ErrorAction SilentlyContinue | |
| # For Sapling | |
| Remove-Item Alias:sl -Force | |
| Set-PSReadlineOption -BellStyle None | |
| Set-PSReadlineOption -EditMode Emacs | |
| function ll() | |
| { | |
| Get-ChildItem | Select-Object Name, LinkType, Target | |
| } | |
| function ConvertFrom-Epoch | |
| { | |
| [CmdletBinding()] | |
| Param( | |
| [Parameter(ValueFromPipeline)] | |
| $item | |
| ) | |
| Write-Verbose "Unixtime is $item" | |
| [datetime]$origin = '1970-01-01 00:00:00' | |
| return $origin.AddSeconds($item) | |
| } | |
| if (Get-Command 'nvim' -ErrorAction SilentlyContinue) | |
| { | |
| Set-Alias vim nvim | |
| } | |
| Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+t' -PSReadlineChordReverseHistory 'Ctrl+r' | |
| Invoke-Expression (&starship init powershell) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment