4 ms·
Here's my $PROFILE: Import-Module PSReadLine Set-PSReadLineOption -EditMode Emacs Set-PSReadLineOption -HistorySearchCursorMovesToEnd Set-PSRea
by eatonphil 5y 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 }
- beart 5y agoYou can also enable predictive intellisense with PSReadLine 2.1+ https://devblogs.microsoft.com/powershell/announcing-psreadline-2-1-with-predictive-intellisense/ https://devblogs.microsoft.com/powershell/announcing-psreadl...