From 91b75d778df867d40266b904f5aaa90f821b911b Mon Sep 17 00:00:00 2001 From: Nicole Tietz-Sokolskaya Date: Wed, 28 Sep 2022 08:58:18 -0400 Subject: [PATCH] Use tmuxinator, auto session resume in vim --- bash/.bashrc | 3 +++ fedora_bootstrap.sh | 5 +++-- nvim/.config/nvim/init.vim | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/bash/.bashrc b/bash/.bashrc index 998b14f..193ce7a 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -13,6 +13,9 @@ HISTCONTROL=ignoreboth export HISTSIZE=1000000 export HISTFILESIZE=10000000 +# set the correct editor to open automatically +export EDITOR=nvim + # append to the history file rather than overwriting it shopt -s histappend diff --git a/fedora_bootstrap.sh b/fedora_bootstrap.sh index 63db985..044a055 100644 --- a/fedora_bootstrap.sh +++ b/fedora_bootstrap.sh @@ -1,7 +1,6 @@ -sudo dnf install htop neovim stow tmux podman cloc npm nodejs gnome-tweak-tool +sudo dnf install htop neovim stow tmux podman cloc npm nodejs gnome-tweak-tool ripgrep rubygems sudo dnf install cockpit pcp cockpit-pcp -sudo dnf install ripgrep mkdir -p ~/Code cd ~/Code @@ -22,3 +21,5 @@ cd tla-bin sudo ./install.sh /usr/local curl https://sh.rustup.rs -sSf | sh + +gem install tmuxinator diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 80d8f1b..f833c96 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -11,6 +11,9 @@ map :NERDTreeToggle map :Files map :Rg +" Automatically start Obsession if we open a Session file +autocmd VimEnter * if !empty(v:this_session) && ObsessionStatus('on', 'off') == 'off' | Obsession | endif + " Disable mouse input set mouse=