Created
August 14, 2025 14:44
-
-
Save Marusyk/27264d809d1739c3160ec0249b4e4662 to your computer and use it in GitHub Desktop.
notepad $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
| Set-Alias -Name commit -Value Invoke-TortoiseGitCommit | |
| function Invoke-TortoiseGitCommit { | |
| TortoiseGitProc.exe /command:commit | |
| } | |
| function myip { curl ipinfo.io/ip } | |
| Set-Alias -Name k8s -Value kubectl | |
| function k8s-ctx { | |
| param ([string]$env) | |
| if (-not $env) { | |
| kubectl config current-context | |
| } else { | |
| $context = "aks-XXXX-$env" | |
| kubectl config use-context $context | |
| } | |
| } | |
| Import-Module PSReadLine | |
| Import-Module -Name Terminal-Icons | |
| oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\thecyberden.omp.json" | Invoke-Expression | |
| Set-PSReadLineOption -PredictionSource History | |
| Set-PSReadLineOption -PredictionViewStyle ListView | |
| Set-PSReadLineOption -EditMode Windows | |
| # Import the Chocolatey Profile that contains the necessary code to enable | |
| # tab-completions to function for `choco`. | |
| # Be aware that if you are missing these lines from your profile, tab completion | |
| # for `choco` will not function. | |
| # See https://ch0.co/tab-completion for details. | |
| $ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" | |
| if (Test-Path($ChocolateyProfile)) { | |
| Import-Module "$ChocolateyProfile" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment