From 09309fe02cb0d95c2ab0bfc5933cf4e09e640b8c Mon Sep 17 00:00:00 2001 From: eug-vs Date: Tue, 2 Mar 2021 15:02:25 +0300 Subject: feat(tmux): introduce tmuxinator --- .config/tmuxinator/admin.yml | 9 +++++++++ .tmux.conf | 2 -- .zshrc | 2 ++ Documents/wiki/tmux.md | 8 ++------ 4 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 .config/tmuxinator/admin.yml diff --git a/.config/tmuxinator/admin.yml b/.config/tmuxinator/admin.yml new file mode 100644 index 0000000..662256d --- /dev/null +++ b/.config/tmuxinator/admin.yml @@ -0,0 +1,9 @@ +name: admin +root: ~/ + +windows: + - explorer: + layout: main-vertical + panes: + - vifm + - config status diff --git a/.tmux.conf b/.tmux.conf index 58528b7..a5f8488 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -24,8 +24,6 @@ set-window-option -g mode-keys vi # Plugins set -g @plugin 'christoomey/vim-tmux-navigator' -set -g @plugin 'tmux-plugins/tmux-resurrect' -set -g @plugin 'tmux-plugins/tmux-continuum' # Initialize Tmux Plugin Manager run '~/.tmux/plugins/tpm/tpm' diff --git a/.zshrc b/.zshrc index 0df305c..fba7aa4 100644 --- a/.zshrc +++ b/.zshrc @@ -1,4 +1,5 @@ export ZSH="$HOME/.oh-my-zsh" +export EDITOR=nvim ZSH_THEME="ys" @@ -16,3 +17,4 @@ export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion export PATH=$PATH:~/.local/bin + diff --git a/Documents/wiki/tmux.md b/Documents/wiki/tmux.md index a89445f..612e536 100644 --- a/Documents/wiki/tmux.md +++ b/Documents/wiki/tmux.md @@ -10,10 +10,6 @@ I use the same set of keys (`` - without prefix!) to navigate between Plugin: https://github.com/christoomey/vim-tmux-navigator -## Save/restore sessions on reboot - - `prefix` + `` - save session - - `prefix` + `` - restore session +## Project management with Tmuxinator +I use [tmuxinator](https://github.com/tmuxinator/tmuxinator) for managing projects and sessions. Here's the [admin session example](../../.config/tmuxinator/admin.yml). -**TODO:** restore vim sessions as well - -Plugin: https://github.com/tmux-plugins/tmux-resurrect -- cgit v1.2.3