Skip to content

Instantly share code, notes, and snippets.

@marcelbeumer
Created May 26, 2013 10:34
Show Gist options
  • Save marcelbeumer/5652379 to your computer and use it in GitHub Desktop.
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.
:bind-key -n C-k send-keys "clear && tmux clear-history; history -d $((\$HISTCMD-1))" \; send-keys "Enter"
@MarioAriasC
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment