annotate .tmux.conf @ 174:bfe9085a1d39

change account back
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Tue, 10 Jan 2023 17:48:26 +0000
parents c7d57d158331
children 9d71a9f55ea0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
171
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 127
diff changeset
1
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 127
diff changeset
2 A# scroll-bar? see https://superuser.com/questions/310251/use-terminal-scrollbar-with-tmux
127
3bc1d24363a1 bits and pieces
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
3 set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
3bc1d24363a1 bits and pieces
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
4
3bc1d24363a1 bits and pieces
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
5 # mousewheel scrolling
3bc1d24363a1 bits and pieces
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
6 set -g mouse on
171
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 127
diff changeset
7
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 127
diff changeset
8 # edit mode
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 127
diff changeset
9 setw -g mode-keys emacs
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 127
diff changeset
10
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 127
diff changeset
11 # cut-paste outside tmux. see https://linuxhint.com/copy-paste-clipboard-tmux/
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 127
diff changeset
12 bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 127
diff changeset
13 bind C-v run 'tmux set-buffer "$(xclip -o -sel clipboard)"; tmux paste-buffer'
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 127
diff changeset
14
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 127
diff changeset
15 # https://superuser.com/questions/1098077/how-to-keep-terminal-window-title-in-sync-with-tmux-window
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 127
diff changeset
16 set-option -g set-titles on
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 127
diff changeset
17 set-option -g set-titles-string "#S #T"