aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-09-28 01:00:07 +0000
committerDuncaen <mail@duncano.de>2017-09-28 01:00:07 +0000
commit52bec3503db41d7e3999186377434e6cfe4f56c1 (patch)
tree5f3af6d969a800288a8faf6ab248c0c53e92c616
parent48c71a173715508c292e91ebfb500499ac559cba (diff)
downloaddotfiles-52bec3503db41d7e3999186377434e6cfe4f56c1.tar.gz
tmux: add configuration
-rwxr-xr-xinstall.sh6
-rw-r--r--tmux.conf47
2 files changed, 53 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index 68ae85d..436812a 100755
--- a/install.sh
+++ b/install.sh
@@ -103,6 +103,11 @@ _firefox() {
_ln_home "userChrome.css" ".mozilla/firefox/$p/chrome/userChrome.css"
done
}
+_tmux() {
+ [ -n "$(command -v tmux 2>/dev/null)" ] || return
+ msg "INSTALL" "tmux config"
+ _ln_home "tmux.conf" ".tmux.conf"
+}
: ${PWD:=$(pwd)}
: ${HOME:=~}
@@ -121,3 +126,4 @@ _void
_ssh
_gtk
_firefox
+_tmux
diff --git a/tmux.conf b/tmux.conf
new file mode 100644
index 0000000..a1ee58c
--- /dev/null
+++ b/tmux.conf
@@ -0,0 +1,47 @@
+# .tmux.conf
+# 31jan2010 +chris+
+# 30mar2016 +chris+ cleanup
+# 28sep2017 +duncan+ imported
+
+# general
+set -g base-index 1
+set -g history-limit 5000
+# don't spawn login shells
+set -g default-command "$SHELL"
+set -g terminal-overrides "rxvt-unicode-256color:sitm@"
+set -ag update-environment " GNOME_KEYRING_PID GNOME_KEYRING_SOCKET"
+setw -g aggressive-resize on
+
+# style
+set -g status-style fg=white,bg=black
+setw -g window-status-current-style bold
+set -g message-style fg=white,bg=black,bold
+set -g pane-active-border-style fg=default,bg=default
+set -g status-interval 0
+set -g status-right-length 0
+set -g set-titles on
+set -g set-titles-string "#H: #W"
+
+# screen-like things
+set -g prefix ^A
+bind C-a last-window
+bind a send-prefix
+bind M-a next-window -a
+bind c new-window -c ~
+bind k confirm-before -p "kill-window #W? (y/n)" kill-window
+bind K kill-window
+bind S split-window
+
+# custom bindings
+bind 0 select-window -T -t ':.$'
+bind C move-window -r
+bind R source-file ~/.tmux.conf
+bind h split-window -h
+bind v split-window
+bind . neww -c '#{pane_current_path}'
+bind ^R neww rc
+
+bind -n C-left previous-window
+bind -n C-right next-window
+
+bind -n M-PPage copy-mode -u