Compare commits
3 Commits
0eacee3646
...
2607c47389
Author | SHA1 | Date | |
---|---|---|---|
|
2607c47389 | ||
|
f3e60580a5 | ||
|
574e38e98b |
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "plugins/tpm"]
|
||||||
|
path = plugins/tpm
|
||||||
|
url = https://github.com/tmux-plugins/tpm
|
@ -1,6 +1,5 @@
|
|||||||
Tmux configuration
|
# Tmux configuration
|
||||||
==================
|
|
||||||
|
|
||||||
1/ clone repo : ```git clone https://github.com/xlogerais/tmux-config ~/.tmux```
|
1/ clone repo : `git clone --recursive https://github.com/xlogerais/tmux-config ~/.tmux`
|
||||||
2/ make symlink : ```ln -sf $HOME/.tmux/config $HOME/.tmux.conf```
|
2/ make symlink : `ln -sf $HOME/.tmux/config $HOME/.tmux.conf`
|
||||||
3/ Enjoy...
|
3/ Enjoy...
|
||||||
|
57
config
57
config
@ -1,29 +1,68 @@
|
|||||||
# Set history size
|
############### [Personal settings] ###############
|
||||||
set -g history-limit 10000
|
|
||||||
|
|
||||||
# Force terminal for 256 colors support
|
# Mouse
|
||||||
set -g default-terminal "screen-256color"
|
set -g mouse on
|
||||||
|
|
||||||
# Display titles
|
# Display titles
|
||||||
set -g set-titles on
|
set -g set-titles on
|
||||||
set -g set-titles-string "#T"
|
set -g set-titles-string "#T"
|
||||||
|
|
||||||
|
# Set history size
|
||||||
|
# INFO: This is now set by the tmux-sensitive plugin
|
||||||
|
# set -g history-limit 10000
|
||||||
|
|
||||||
# Make splitting more intuitive
|
# Make splitting more intuitive
|
||||||
unbind %
|
# INFO: This is now set by the tmux-pain-control plugin
|
||||||
bind | split-window -h
|
# bind | split-window -h
|
||||||
bind _ split-window -v
|
# bind _ split-window -v
|
||||||
|
|
||||||
|
# Force terminal for 256 colors support
|
||||||
|
# set -g default-terminal "screen-256color"
|
||||||
|
set -g default-terminal "tmux-256color"
|
||||||
|
# You can find the definition file here : https://github.com/tmux/tmux/files/1725937/tmux-256color.terminfo.txt
|
||||||
|
# and install it with this command : tic -x tmux-256color.terminfo.txt
|
||||||
|
# Alternative if tmux-256color is not available
|
||||||
|
set -as terminal-overrides ",*256col*:RGB"
|
||||||
|
set -as terminal-overrides ",*256col*:Tc"
|
||||||
|
|
||||||
# Keybindings
|
# Keybindings
|
||||||
|
|
||||||
|
unbind %
|
||||||
|
|
||||||
bind -n S-up new-window
|
bind -n S-up new-window
|
||||||
bind -n S-down new-window
|
bind -n S-down new-window
|
||||||
|
|
||||||
bind -n C-left prev
|
bind -n C-left prev
|
||||||
bind -n C-right next
|
bind -n C-right next
|
||||||
|
bind -n C-tab next
|
||||||
|
|
||||||
bind -n S-left swap-window -t -1
|
bind -n S-left swap-window -t -1
|
||||||
bind -n S-right swap-window -t +1
|
bind -n S-right swap-window -t +1
|
||||||
|
|
||||||
bind z resize-pane -Z
|
bind z resize-pane -Z
|
||||||
|
|
||||||
# Mouse
|
# bind -n F8 new-window qbco
|
||||||
set -g mouse on
|
# bind -n F8 new-window bash -c 'source ~/Repositories/Gitlab/bash-tools/libs/kgb.bash && source ~/Repositories/Gitlab/bash-tools/libs/misc.bash && qbco'
|
||||||
|
bind -n -N "Select cluster with fzf, authenticate with qbco then launch k9s in a new window" F9 new-window qb9s
|
||||||
|
bind -n -N "Select cluster with fzf, authenticate with qbco then launch k9s in a split window" S-F9 split-window qb9s
|
||||||
|
bind -N "emit F9 key press with prefix-F9 (because we have bound F9 to another shortcut)" F9 send-keys F9
|
||||||
|
|
||||||
|
############### [ Plugins ] ###############
|
||||||
|
|
||||||
|
# List of plugins to install
|
||||||
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-pain-control'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-copycat'
|
||||||
|
set -g @plugin 'erikw/tmux-powerline'
|
||||||
|
set -g @plugin "nordtheme/tmux"
|
||||||
|
|
||||||
|
# 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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user