I have a habit of issuing the clear command.
When I run cygwin, the package containing clear isn't installed and I don't have the option of installing it. Ctrl+L is a good substitute; however, I still issue the clear command habitually.
I'd like to alias the clear keyword to issue the Ctrl+L keystroke. Is this possible to achieve in the .bashrc file, or something of the like?
Thanks!
clear clears the screen simply by outputting some ANSI escapes sequences. You can do the same thing with printf:
alias clear='printf "\e[H\e[2J"'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With