# this file: # http://user.it.uu.se/~embe8573/conf/.tmux.conf # https://dataswamp.org/~incal/conf/.tmux.conf # # tmux attach [-t X] # tmux kill-session -t X # tmux list-sessions # tmux new -s X-s 'tmux set remain-on-exit on; X' # # key search: # (let ((case-fold-search nil)) (re-search-forward "bind d")) # read this file bind -n C-r source-file ~/.tmux.conf # prefix unbind C-b set -g prefix C-j bind C-j send-prefix # navigate panes bind i select-pane -U bind k select-pane -D bind j select-pane -L bind l select-pane -R # split panes bind I split-window -h bind L split-window -v # resize bind e resize-pane -U 1 bind s resize-pane -L 1 bind f resize-pane -R 1 bind d resize-pane -D 1 # misc panes bind -n M-q resize-pane -L 27 # silly projector left leap bind -n C-w kill-pane # close current # colors set -g status off set -g message-style bg=yellow set -g pane-active-border-style bg=black set -g pane-active-border-style fg=green set -g pane-border-style bg=black set -g pane-border-style fg=blue # misc set -g default-terminal "screen" bind -n M-o run-shell ~/scripts/tmux_M-o # scroll / copy mode bind -n M-i copy-mode bind -T copy-mode i send -X scroll-up bind -T copy-mode k send -X scroll-down bind -T copy-mode I send -X page-up bind -T copy-mode K send -X page-down # TODO: DNC anymore :( # tmux -> emacs: ~/public_html/emacs-init/linux-shell.el # bind -T copy-mode M-w copy-pipe "cat > ~/.tmux-killed; cat ~/.tmux-killed | xi"