Skip to content

Comment on Shell Gamification (how I learn to use my shell aliases)parent

Comments

> cls=clear # Yes, I started out in DOS

ctlr + l is your new best friend.

cmd + k (too)

cmd-k also clears the scrollback buffer. It's probably the single thing I miss most after moving back to linux from macOS.

You can bind Alt-K to Reset and clear in gnome-terminal's keyboard bindings.

Thank you!

My remaining minor complaint: alt-k loses the prompt.

Alt-K and Ctrl-l will solve that :)

> ctlr + l is your new best friend.

I use xterm (goes to check before I make an ass out of myself) and I'm utterly shocked this works. Amazing. Ctrl-l does indeed work.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.