Bash Terminal: How do I bind Ctrl+K to kill-whole-line THEN clear screen?

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!


This sequence clear current input and executes terminal reset.

bind '"\C-k": "\C-e\C-uecho -e \"\\033c\\c\"\n"'

Need Your Help

Getting position right in css closer to centre?

html css

Hihi, I'm making a coming soon site for my upcoming game and I have been struggling with this for hours! is the site and basically, is there anyway I can get "Check out the

Can you run your own reCaptcha service, in your own web app?

captcha recaptcha backend

Is the backend used by reCaptcha open source? Is it a simple web app that can be deployed in a given container?