diff --git a/dots/tmux.conf b/dots/tmux.conf index 09283ae..0896fde 100644 --- a/dots/tmux.conf +++ b/dots/tmux.conf @@ -3,6 +3,23 @@ set-option -g default-terminal "screen-256color" set -s escape-time 0 set-option -g status-style fg=white,bg=black +set-window-option -g mode-keys vi + unbind-key C-b set-option -g prefix C-a bind-key C-a send-prefix + +bind r source-file ~/.tmux.conf + +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'odedlaz/tmux-onedark-theme' + +# Other examples: +# set -g @plugin 'github_username/plugin_name' +# set -g @plugin 'github_username/plugin_name#branch' +# set -g @plugin 'git@github.com:user/plugin' +# set -g @plugin 'git@bitbucket.com:user/plugin' + +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +run '~/.tmux/plugins/tpm/tpm' diff --git a/dots/zshrc b/dots/zshrc index 65fb04e..67e7304 100644 --- a/dots/zshrc +++ b/dots/zshrc @@ -8,7 +8,7 @@ export ZSH="$HOME/.oh-my-zsh" # load a random theme each time oh-my-zsh is loaded, in which case, # to know which specific one was loaded, run: echo $RANDOM_THEME # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes -ZSH_THEME="edvardm" +ZSH_THEME="agnoster" # Set list of themes to pick from when loading at random # Setting this variable when ZSH_THEME=random will cause zsh to load diff --git a/install_alpine.sh b/install_alpine.sh index 0d2ecd3..f9195fa 100755 --- a/install_alpine.sh +++ b/install_alpine.sh @@ -77,6 +77,12 @@ user_setup() { fi cp "$DIR/dots/zshrc" "$HOME/.zshrc" cp "$DIR/dots/tmux.conf" "$HOME/.tmux.conf" + # install tpm and plugins + git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm || exit 1 + tmux start \; \ + new -d \; \ + run "$HOME/.tmux/plugins/tpm/scripts/install_plugins.sh" \; \ + kill-session || exit 1 mkdir -p "$HOME/.local/bin" || exit 1 cp -r "$DIR/scripts/." "$HOME/.local/bin/" || exit 1 } diff --git a/install_fedora.sh b/install_fedora.sh index dc3b754..805f574 100755 --- a/install_fedora.sh +++ b/install_fedora.sh @@ -63,6 +63,11 @@ dotfiles() { fi cp "$DIR/dots/zshrc" "$HOME/.zshrc" cp "$DIR/dots/tmux.conf" "$HOME/.tmux.conf" + git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm || exit 1 + tmux start \; \ + new -d \; \ + run "$HOME/.tmux/plugins/tpm/scripts/install_plugins.sh" \; \ + kill-session || exit 1 mkdir -p "$HOME/.local/bin" || exit 1 cp -r "$DIR/scripts/." "$HOME/.local/bin/" || exit 1 } diff --git a/install_ubuntu.sh b/install_ubuntu.sh index fea7f84..b3a3f75 100755 --- a/install_ubuntu.sh +++ b/install_ubuntu.sh @@ -96,6 +96,11 @@ dotfiles() { fi cp "$DIR/dots/zshrc" "$HOME/.zshrc" cp "$DIR/dots/tmux.conf" "$HOME/.tmux.conf" + git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm || exit 1 + tmux start \; \ + new -d \; \ + run "$HOME/.tmux/plugins/tpm/scripts/install_plugins.sh" \; \ + kill-session || exit 1 mkdir -p "$HOME/.local/bin" || exit 1 cp -r "$DIR/scripts/." "$HOME/.local/bin/" || exit 1 }