Advertisement
Guest User

My TMUX configuration

a guest
Oct 3rd, 2010
991
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. ######################################################################
  2. # key bindings
  3. ######################################################################
  4.  
  5. ## emacs-style by default
  6. setw -g mode-keys emacs
  7.  
  8. ## change prefix key
  9. set -g prefix C-o
  10. unbind C-b
  11.  
  12. ## screen-like hardcopy and logging
  13. bind C-o select-window -t !
  14. bind H capture-pane ; save-buffer -b 0 ~/tmux.hardcopy ; delete-buffer -b 0
  15. bind h pipe-pane -o 'cat >>~/output.#I-#P'
  16.  
  17. ## add some vi-style
  18. bind -nr -t emacs-copy h cursor-left
  19. bind -nr -t emacs-copy j cursor-down
  20. bind -nr -t emacs-copy k cursor-up
  21. bind -nr -t emacs-copy l cursor-right
  22. bind -nr -t emacs-copy b page-up
  23. bind -nr -t emacs-copy / search-forward
  24. bind -nr -t emacs-copy ? search-reverse
  25. bind -nr -t emacs-copy C-g cancel
  26.  
  27. ######################################################################
  28. # parameters
  29. ######################################################################
  30.  
  31. ## status visuals
  32. set -g status off
  33. set -g status-bg white
  34. set -g status-fg black
  35. set -g status-utf8 on
  36.  
  37. ## session defaults
  38. set -g history-limit 10000
  39. set -g default-shell /usr/local/bin/logsh.ttyrec
  40. set -g update-environment "DISPLAY WINDOWID SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION GPG_AGENT_INFO"
  41.  
  42. ## window defaults
  43. setw -g utf8 on
  44. setw -g mode-keys emacs
  45. setw -g automatic-rename on
  46.  
  47. ######################################################################
  48. # startup commands
  49. ######################################################################
  50. new-session -s main
  51. new-window
  52. new-window
  53. new-window
  54. select-window -t 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement