|
|
|
|
|
by eatonphil
1518 days ago
|
|
Here's my $PROFILE: Import-Module PSReadLine
Set-PSReadLineOption -EditMode Emacs
Set-PSReadLineOption -HistorySearchCursorMovesToEnd
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
Set-PSReadLineKeyHandler -Key Tab -Function Complete
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme material
function e { emacs -nw $args }
function gs { git status $args }
del alias:gc -Force
function gc { git commit $args }
del alias:gp -Force
function gp { git push -u origin $(git branch --show-current) }
function python { python3 $args }
|
|
https://devblogs.microsoft.com/powershell/announcing-psreadl...