summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.tmux.conf31
-rwxr-xr-xsetup.sh3
2 files changed, 34 insertions, 0 deletions
diff --git a/.tmux.conf b/.tmux.conf
new file mode 100644
index 0000000..1ed550d
--- /dev/null
+++ b/.tmux.conf
@@ -0,0 +1,31 @@
+# Change the prefix key to Ctrl-Space
+set -g prefix C-Space
+unbind C-b
+bind C-Space send-prefix
+
+# Toggle the status line with prefix + Space
+bind Space set -g status
+
+# Split the window horizontally with prefix + |
+# Split the window vertically with prefix + -
+unbind \%
+unbind \"
+bind | split-window -h
+bind - split-window -v
+
+# Navigate panes with prefix + hjkl
+unbind l
+bind h select-pane -L
+bind j select-pane -D
+bind k select-pane -U
+bind l select-pane -R
+
+# Start window and pane numbering from 1 instead of 0
+set -g base-index 1
+set -g pane-base-index 1
+
+# Show the clock on the right side of the status line
+set -g status-right '%H:%M'
+
+# Use the terminal's default foreground and background colors
+set -g status-style fg=default,bg=default
diff --git a/setup.sh b/setup.sh
index 1d91bc9..05b4917 100755
--- a/setup.sh
+++ b/setup.sh
@@ -58,6 +58,9 @@ fi
# Publish config of tldr
[ -e "$HOME/.tldrrc" ] || ln -s "$dotfiles/.tldrrc" "$HOME/.tldrrc"
+# Install tmux configuration
+[ -e "$HOME/.tmux.conf" ] || ln -sf "$dotfiles/.tmux.conf" "$HOME/.tmux.conf"
+
# Install verion manager for node.js
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash