This file contains 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
Function My-History { | |
[CmdletBinding()] | |
param() | |
cat $env:APPDATA\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt | |
} | |
Remove-Item 'Alias:\history' -Force | |
New-Alias -Name 'history' -Value 'My-History' -Scope Global | |
New-Alias -Name 'grep' -Value 'Select-String' -Scope Global |
This file contains 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
# Create new global aliases | |
New-Alias USERPROFILE $env:userprofile | |
New-Alias PATH $env:path | |
New-Alias python3 python | |
New-Alias which where.exe | |
# NOTE: starship also adds an implicit: New-Alias ~ $env:userprofile | |
# Introducing a set of "aliases" (a hashmap) that will be auto-expanded to expected paths | |
$Custom_Alias = @{ |
This file contains 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
#!/usr/bin/env bash | |
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done | |
git fetch --all | |
git pull --all |