aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2021-06-03 22:46:36 +0900
committernsfisis <nsfisis@gmail.com>2021-06-03 22:46:36 +0900
commitae085f4db41fa36744f1776c2a4b7c5870fe4c6a (patch)
treeff2fd0d69a013ef281f785f7793cfe9c43ac7ea1
parentd1c915668aa36c431bcd07ecc178b1461579996c (diff)
downloaddotfiles-ae085f4db41fa36744f1776c2a4b7c5870fe4c6a.tar.gz
dotfiles-ae085f4db41fa36744f1776c2a4b7c5870fe4c6a.tar.zst
dotfiles-ae085f4db41fa36744f1776c2a4b7c5870fe4c6a.zip
Add .tmux.conf
-rw-r--r--.tmux.conf44
-rwxr-xr-xsetup.sh2
2 files changed, 45 insertions, 1 deletions
diff --git a/.tmux.conf b/.tmux.conf
new file mode 100644
index 0000000..7508c9d
--- /dev/null
+++ b/.tmux.conf
@@ -0,0 +1,44 @@
+###################################################################
+# __ __ _ __ #
+# | \/ |_ _ | |_ _ __ ___ _ ___ __ ___ ___ _ __ / _| #
+# | |\/| | | | | | __| '_ ` _ \| | | \ \/ / / __/ _ \| '_ \| |_ #
+# | | | | |_| | | |_| | | | | | |_| |> < | (_| (_) | | | | _| #
+# |_| |_|\__, | (_)__|_| |_| |_|\__,_/_/\_(_)___\___/|_| |_|_| #
+# |___/ #
+###################################################################
+
+# OPTIONS {{{1
+
+# BASICS {{{2
+set-option -g base-index 1
+set-option -g pane-base-index 1
+set-option -g default-shell /bin/zsh
+
+# APPEARANCE {{{2
+set-option -g status-justify centre
+set-option -g status-left ' [#S] '
+set-option -g status-position top
+set-option -g status-right '%F (%a) %R '
+
+set-option -g pane-border-lines double
+
+
+# KEY BINDINGS {{{1
+
+unbind-key -a
+
+set-option -g status-keys emacs
+set-option -g prefix C-t
+
+bind-key ';' command-prompt
+bind-key ? list-keys
+bind-key t new-window
+bind-key n next-window
+bind-key p previous-window
+bind-key N move-window -a
+bind-key P move-window -b
+bind-key w switch-client -T tw
+bind-key -T tw h split-window -h -b
+bind-key -T tw j split-window -v
+bind-key -T tw k split-window -v -b
+bind-key -T tw l split-window -h
diff --git a/setup.sh b/setup.sh
index 485d7f4..f2be5b5 100755
--- a/setup.sh
+++ b/setup.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-for name in .gitconfig .vim .vimrc .zshrc; do
+for name in .gitconfig .tmux.conf .vim .vimrc .zshrc; do
if [ ! -L ~/$name ]; then
ln -s -f ~/dotfiles/$name ~/$name
fi