1
0
Pārlūkot izejas kodu

Add tmux config and use install instead of screen config

Taddeus Kroes 8 mēneši atpakaļ
vecāks
revīzija
1b61942df3
2 mainītis faili ar 29 papildinājumiem un 2 dzēšanām
  1. 2 2
      install.sh
  2. 27 0
      tmux.conf

+ 2 - 2
install.sh

@@ -14,8 +14,8 @@ ln -sf $DIR/gitconfig ~/.gitconfig
 ln -sf $DIR/bashrc ~/.bashrc
 source ~/.bashrc
 
-# screen
-ln -sf $DIR/screenrc ~/.screenrc
+# tmux
+ln -sf $DIR/tmux.conf ~/.tmux.conf
 
 # vim
 if which vim >/dev/null; then

+ 27 - 0
tmux.conf

@@ -0,0 +1,27 @@
+# remap prefix from 'C-b' to 'C-a'
+#unbind C-b
+#set-option -g prefix C-a
+
+# switch to last window like screen, by holding down Control
+bind C-b last-window
+bind b send-prefix
+
+# open command prompt with ;
+unbind \;
+bind \; command-prompt
+
+# split panes using | and -
+#unbind '"'
+#unbind %
+bind | split-window -h
+bind - split-window -v
+
+# reload config file with r
+bind r source-file ~/.tmux.conf \; display ".tmux.conf reloaded!"
+
+# switch panes using Vim navigation keys
+unbind l
+bind h select-pane -L
+bind j select-pane -D
+bind k select-pane -U
+bind l select-pane -R