Relative Content

Tag Archive for powershell-7

Pasting deleted text in Powershell 7

I’m trying to add my favorite keyboard shortcuts from Linux/Bash to PowerShell to make it easier to switch between them (see code snippet below and you’ll get the idea). Though there is one feature I’m not able to replicate: When deleting a word/character/line/any text in the bash terminal, you can paste the most recent text back by pressing ctrl+y. Though in PowerShell it doesn’t seem like there’s a feature other than pasting from the clipboard(?). A possible workaround could be making the deleted text go into the clipboard. Open for suggestions.