rkstvg
Last Updated: May 08, 2017
·
6.929K
· cloud8421
Da617f047141876ec60e646e60196faa

Clear pane in Tmux

If you use iTerm or Terminal, you may be used to press cmd-k to clear the current window. If you're inside a Tmux session, this is a bad idea.

You can however use the following snippet to achieve the same result inside the current Tmux pane:

bind -n C-k send-keys -R \; clear-history

Just press ctrl-k and you're done! Works really good when you're tailing logs.

Say Thanks
Respond

1 Response
Add your response

28569
9fedd07dde1ab0e9d2e4eedcd7aa09fc

I already had this in my tmux.conf

bind-key -n C-k clear-history

What's the difference with the notation you proposed? Is there any advantage to mine?

10 months ago ·