# "dot source" this file in my $PROFILE

# Define git related functions for aliases
function GitDiff { git diff }
function GitLog { git log --graph --oneline --decorate }
function GitShowBranch { git show-branch }
function GitStatus { git status -s }

# Define git related aliases. Note, "gl" is for Get-Location by default.
Set-Alias gd GitDiff
Set-Alias gb GitShowBranch
Set-Alias gs GitStatus
if ($Host.Version.Major -ge 7) {
    Set-Alias -Force gl GitLog
} else {
    Set-Alias -Force -Option AllScope gl GitLog
}

# Use Emacs keybindings
Set-PSReadLineOption -EditMode Emacs

# Use standard-ish prompt using "~" for user profile directory
function prompt {
    "PS " + "$(Get-Location)".Replace($env:USERPROFILE, "~") + "> "
}

# "dot source" this file in my $PROFILE

# Define git related functions for aliases
function GitDiff { git diff }
function GitLog { git log --graph --oneline --decorate }
function GitShowBranch { git show-branch }
function GitStatus { git status -s }

# Define git related aliases. Note, "gl" is for Get-Location by default.
Set-Alias gd GitDiff
Set-Alias gb GitShowBranch
Set-Alias gs GitStatus
if ($Host.Version.Major -ge 7) {
    Set-Alias -Force gl GitLog
} else {
    Set-Alias -Force -Option AllScope gl GitLog
}

# Remove unnecessary aliases
Get-ChildItem Alias: | Where-Object -Property Name -in @("curl", "wget") | Remove-Item

# Use Emacs keybindings
Set-PSReadLineOption -EditMode Emacs

# Use standard-ish prompt using "~" for user profile directory
function prompt {
    "PS " + "$(Get-Location)".Replace($env:USERPROFILE, "~") + "> "
}

Remove alias of curl & wget if defined
pwsh: Remove alias of curl & wget if defined
