summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-10-30 18:42:57 +0100
committerAnton Khirnov <anton@khirnov.net>2020-10-30 18:42:57 +0100
commit2c6410cfd1e892c4730279394cdb9b409ace2a48 (patch)
tree0b8dae51a9fa79e1104929b16c0c81eae82e4872
parentc7bcddf4ea4fc2c6a213bafc916c9f0d0e5e5f99 (diff)
Add tmux.conf
-rw-r--r--dotfiles/tmux.conf32
-rwxr-xr-xinstall2
-rw-r--r--install.conf.yaml5
3 files changed, 35 insertions, 4 deletions
diff --git a/dotfiles/tmux.conf b/dotfiles/tmux.conf
new file mode 100644
index 0000000..a2b2519
--- /dev/null
+++ b/dotfiles/tmux.conf
@@ -0,0 +1,32 @@
+# set the prefix to C-A
+unbind C-b
+set -g prefix C-a
+bind C-a send-prefix
+
+set -g default-terminal "tmux-256color"
+set -g aggressive-resize on
+set -g set-titles on
+set -g mode-keys vi
+
+set -g xterm-keys on
+
+# -,| do a horizontal/vertical split
+unbind-key %
+unbind-key '"'
+bind - split-window -v -c '#{pane_current_path}'
+bind | split-window -h -c '#{pane_current_path}'
+
+# spawn new shells in the current path
+bind c new-window -c '#{pane_current_path}'
+
+set-option -g history-limit 16384
+set-option -g update-environment "\
+ DISPLAY\
+ SSH_ASKPASS\
+ SSH_AUTH_SOCK\
+ SSH_AGENT_PID\
+ SSH_CONNECTION\
+ WINDOWID\
+ XAUTHORITY\
+ DBUS_SESSION_BUS_ADDRESS\
+"
diff --git a/install b/install
index 7cfc96d..69aa1bf 100755
--- a/install
+++ b/install
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/bash
# This is free and unencumbered software released into the public domain.
#
diff --git a/install.conf.yaml b/install.conf.yaml
index 5ec980f..0d1db60 100644
--- a/install.conf.yaml
+++ b/install.conf.yaml
@@ -1,3 +1,2 @@
-- clean: []
-- link: {}
-- shell: []
+- link:
+ ~/.tmux.conf: dotfiles/tmux.conf