Created
February 17, 2020 10:59
-
-
Save Zazcallabah/68ac3d81a8f2866d526199aee7e04b31 to your computer and use it in GitHub Desktop.
psprofile for pwsh core linux
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 ls -value Get-ChildItem | |
| set-alias -name sc -value Set-Content | |
| $culture = [CultureInfo]::InvariantCulture.Clone() | |
| $currentThread = [System.Threading.Thread]::CurrentThread | |
| $culture.DateTimeFormat.DateSeparator = "-" | |
| $culture.DateTimeFormat.FirstDayOfWeek = "Monday" | |
| $culture.DateTimeFormat.ShortDatePattern = "yyyy-MM-dd" | |
| $currentThread.CurrentCulture = $culture | |
| $currentThread.CurrentUICulture = $culture | |
| function hosts | |
| { | |
| cat /home/peter/.ssh/config | grep "^Host" | |
| } | |
| function prod | |
| { | |
| nmcli con up id production | |
| } | |
| function noprod | |
| { | |
| nmcli con down id production | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment