Use CTRL + D to exit and CTRL + L to cls in Powershell console

前端 未结 6 1527
说谎
说谎 2021-02-01 13:13

I am trying to make

CTRL + D - exit Powershell console

and

CTRL + L - clear the screen

like in bash.

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-01 13:40

    There is a new library PSReadline for Powershell v3.0 that emulates the GNU Bash tab completion and key bindings. Even CTRL + R for reverse incremental search works. Exactly what I wanted.

提交回复
热议问题