0

basically I want to set a shortcut (ctrl+k) in my cygwin linux terminal to run

bind '"\C-k": kill-whole-line'

THEN immediately run

alias cls="echo -e '\033c\c'"

Both work by themselves but I would like to do it in one keyboard shortcut. Thanks in advance!

sdrtyrty rtyuty
  • 147
  • 1
  • 1
  • 9

1 Answers1

1

This sequence clear current input and executes terminal reset.

bind '"\C-k": "\C-e\C-uecho -e \"\\033c\\c\"\n"'
Maximus
  • 10,751
  • 8
  • 47
  • 65