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.
Written by Claudio Ortolina
Related protips
1 Response
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?
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Tmux
Authors
Related Tags
#tmux
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#