Browse Source

added tmux config

toastie89 1 year ago
parent
commit
da0b362416
3 changed files with 42 additions and 0 deletions
  1. 12 0
      linux/terminal/.tmux.conf
  2. 0 0
      linux/terminal/.vimrc
  3. 30 0
      linux/terminal/README.md

+ 12 - 0
linux/terminal/.tmux.conf

@@ -0,0 +1,12 @@
+# change prefix
+unbind C-b
+set -g prefix C-a
+bind C-a send-prefix
+
+# plugins to persist sessions
+run-shell ~/.tmux-plugins/tmux-continuum/continuum.tmux
+run-shell ~/.tmux-plugins/tmux-resurrect/resurrect.tmux
+
+# Auto restore last session
+set -g @continuum-restore 'on'
+

linux/.vimrc → linux/terminal/.vimrc


+ 30 - 0
linux/terminal/README.md

@@ -0,0 +1,30 @@
+
+
+### vim config
+see .vimrc
+
+
+### tmux plugins to persist sessions
+Download
+```
+mkdir -p ~/.tmux-plugins
+git clone https://github.com/tmux-plugins/tmux-resurrect \
+    ~/.tmux-plugins/tmux-resurrect
+git clone https://github.com/tmux-plugins/tmux-continuum \
+    ~/.tmux-plugins/tmux-continuum
+```
+
+Add following lines to ~/.tmux.com
+```    
+run-shell ~/.tmux-plugins/tmux-continuum/continuum.tmux
+run-shell ~/.tmux-plugins/tmux-resurrect/resurrect.tmux
+```
+
+Reload TMUX environment with: 
+```
+tmux source-file ~/.tmux.conf
+
+```
+
+### tmux config
+see .tmux.conf