Clear the Mac Terminal window in one written command (Cmd + K)

No more clear, “oh crap, scroll up, scroll up, scroll up… now which Console command is this a read out from?”

# vi ~/.bash_profile
# Add it, then close the Terminal window and re-open
# thanks me later
# Cmd + K (Command + K / Apple + K / Super + K)
clearbig() {
printf '\e[3J';

view raw
hosted with ❤ by GitHub

You can thank me later