Browse Source

Add Tmux plugin manager.

main
Titouan Rigoudy 4 years ago
parent
commit
c4ddefa6e7
2 changed files with 30 additions and 3 deletions
  1. +6
    -0
      README.md
  2. +24
    -3
      tmux.conf

+ 6
- 0
README.md View File

@ -25,6 +25,12 @@ source ~/dotfiles/config.vim
## Configure tmux ## 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: Run the following command:
```sh ```sh


+ 24
- 3
tmux.conf View File

@ -1,4 +1,7 @@
# Personalized settings for tmux. # Personalized settings for tmux.
#
# These settings require the use of Tmux Plugin Manager.
#
# Usage: # Usage:
# #
# ln -s ~/.tmux.conf <path to this file> # ln -s ~/.tmux.conf <path to this file>
@ -15,8 +18,26 @@ unbind %
bind v split-window -h bind v split-window -h
bind h split-window -v bind h split-window -v
# Enable 256 colors.
set -g default-terminal 'screen-256color'
# Enable vi-like key bindings for navigating around buffers. # Enable vi-like key bindings for navigating around buffers.
set-window-option -g mode-keys vi 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'

Loading…
Cancel
Save