Created
May 26, 2013 10:34
-
-
Save marcelbeumer/5652379 to your computer and use it in GitHub Desktop.
Clear tmux pane with ctrl-k (like cmd-k clears a terminal) without polluting the bash history.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:bind-key -n C-k send-keys "clear && tmux clear-history; history -d $((\$HISTCMD-1))" \; send-keys "Enter" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍