Skip to content

Commit eadfd59

Browse files
author
Sean Nicolay
committed
Fixed tmux config for auto-reattach, added conf to installer
1 parent fee0848 commit eadfd59

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

commonsh/04_tmux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

33
# Start tmux if available and if we aren't in a tmux/screen session
4-
if [ "${TERM}" != "screen" ] && command -v tmux >/dev/null 2>&1; then
4+
if [ "${TERM}" != "screen" ] && [ "$TERM" != "screen-256color" ] && command -v tmux >/dev/null 2>&1; then
55
tmux attach
66
fi

install.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
'git-untrack-ignored': 'bin/git-untracked-ignored',
6262

6363
'gdbinit': '.gdbinit',
64+
65+
'tmux.conf': '.tmux.conf',
6466
}
6567

6668
scriptdir = os.path.dirname(os.path.realpath(__file__))

tmux.conf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
new-session
1+
set -g default-terminal "screen-256color"
22
unbind C-b
3-
set -g prefix C-a
3+
set -g prefix C-j
4+
new-session
5+
6+
unbind C-a
7+
bind C-a select-pane -t :.+

0 commit comments

Comments
 (0)