diff --git a/README.md b/README.md index 22a94b6..f66e91e 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,12 @@ source ~/dotfiles/config.vim ## Configure tmux +Install [Tmux Plugin Manager](https://github.com/tmux-plugins/tpm): + +```sh +$ git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm +``` + Run the following command: ```sh diff --git a/tmux.conf b/tmux.conf index 436c35b..359c5eb 100644 --- a/tmux.conf +++ b/tmux.conf @@ -1,4 +1,7 @@ # Personalized settings for tmux. +# +# These settings require the use of Tmux Plugin Manager. +# # Usage: # # ln -s ~/.tmux.conf @@ -15,8 +18,26 @@ unbind % bind v split-window -h bind h split-window -v -# Enable 256 colors. -set -g default-terminal 'screen-256color' - # Enable vi-like key bindings for navigating around buffers. set-window-option -g mode-keys vi + +# Force tmux to consider the enclosing terminal true-color-capable. +set -ga terminal-overrides ',screen-256color:Tc' + +# List of plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' + +# Install Gruvbox theme for Tmux. +set -g @plugin 'egel/tmux-gruvbox' +set -g @tmux-gruvbox 'dark' # or 'light' + +# Other examples: +# set -g @plugin 'github_username/plugin_name' +# set -g @plugin 'git@github.com:user/plugin' +# set -g @plugin 'git@bitbucket.com:user/plugin' + +# Initialize TMUX plugin manager. +# +# WARNING: Keep this line at the very bottom of tmux.conf! +run '~/.tmux/plugins/tpm/tpm'