]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - Microsoft.PowerShell_profile.ps1
ol and st aliases for git
[dotfiles.git] / Microsoft.PowerShell_profile.ps1
index 31b22adbe57c2933bba0eeddd55db97262959930..d62bca4f60305027b3293a7ab015d8c0b1557b29 100644 (file)
@@ -9,7 +9,7 @@
 # $env:PSModulePath = $env:PSModulePath.Replace("\\ad.uillinois.edu\techsvc\home\$($ENV:USERNAME)\Documents\PowerShell\Modules;",'')
 
 # No longer needed in PowerShell 7
-if($IsWindows -eq "") {
+if(-Not $IsWindows) {
        # Bootstrap for older PowerShell
        Write-Host "***Bootstrapped Is Windows for older PowerShell***"
        $IsWindows = ($env:OS -eq "Windows_NT")
@@ -81,3 +81,14 @@ Write-Host "+ Type 'pg' to enable PoshGit"
 if((Get-Location).Path -eq $HOME){
        cd $env:src
 }
+
+function Get-GitLog() {
+       git log --oneline
+}
+
+function Get-GitStatus() {
+       git status -b --short
+}
+
+New-Alias ol           Get-GitLog
+New-Alias st           Get-GitStatus
\ No newline at end of file