Created
January 31, 2014 09:10
-
-
Save rhysd/8728783 to your computer and use it in GitHub Desktop.
This file contains 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
diff --git a/tmux.conf b/tmux.conf | |
index 03f3398..3b79903 100644 | |
--- a/tmux.conf | |
+++ b/tmux.conf | |
@@ -120,6 +120,9 @@ bind-key -t vi-copy 'C-j' bottom-line | |
bind-key -t vi-copy 'C-k' top-line | |
bind-key -t vi-copy 'C-h' back-to-indentation | |
bind-key -t vi-copy 'C-l' end-of-line | |
+ | |
+# capture the buffer | |
+bind-key C command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S -32768 ; save-buffer %1 ; delete-buffer' | |
# }}} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment