I am trying to make
CTRL + D - exit Powershell console
and
CTRL + L - clear the screen
like in bash.
You can set your PSReadline
to emacs
mode, it will not only exit with ^D
, you will be able to go to beginning of line with ^A
, end of the line with ^E
Include this in your profile:
Set-PSReadlineOption -EditMode Emacs
I'm using cmder
which uses ConEmu
, find profile.ps1
with
for that case and you can add into that file.
Otherwise you can add to default locations where powershell
loads it. One of tutorials HERE.