diff options
author | eug-vs <eug-vs@keemail.me> | 2021-03-02 15:02:25 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-03-02 15:02:25 +0300 |
commit | 09309fe02cb0d95c2ab0bfc5933cf4e09e640b8c (patch) | |
tree | 5f0884685698e93ab862b59fce098e6e3beeddab | |
parent | 5d95571d2d8161360907c84582a806c8160c1915 (diff) | |
download | dotfiles-09309fe02cb0d95c2ab0bfc5933cf4e09e640b8c.tar.gz |
feat(tmux): introduce tmuxinator
-rw-r--r-- | .config/tmuxinator/admin.yml | 9 | ||||
-rw-r--r-- | .tmux.conf | 2 | ||||
-rw-r--r-- | .zshrc | 2 | ||||
-rw-r--r-- | Documents/wiki/tmux.md | 8 |
4 files changed, 13 insertions, 8 deletions
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 @@ -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' @@ -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 (`<C-[hjkl]>` - without prefix!) to navigate between Plugin: https://github.com/christoomey/vim-tmux-navigator -## Save/restore sessions on reboot - - `prefix` + `<C-s>` - save session - - `prefix` + `<C-r>` - 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 |