Compare commits
11 Commits
0eacee3646
...
master
Author | SHA1 | Date | |
---|---|---|---|
2baf45086d | |||
c21bfeb9fc | |||
47f58391bc | |||
97987beea8 | |||
a042e5e356 | |||
360fccfdda | |||
8f337208f9 | |||
26b96edb82 | |||
|
2607c47389 | ||
|
f3e60580a5 | ||
|
574e38e98b |
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
plugins/*
|
||||
!plugins/tpm
|
0
.gitmodules
vendored
Normal file
0
.gitmodules
vendored
Normal file
@@ -1,6 +1,4 @@
|
||||
Tmux configuration
|
||||
==================
|
||||
# Tmux configuration
|
||||
|
||||
1/ clone repo : ```git clone https://github.com/xlogerais/tmux-config ~/.tmux```
|
||||
2/ make symlink : ```ln -sf $HOME/.tmux/config $HOME/.tmux.conf```
|
||||
3/ Enjoy...
|
||||
1/ clone repo : `git clone --recursive https://gitea.cloud.logerais.com/xavier/config-tmux.git "${XDG_CONFIG_HOME:-$HOME/.config}/tmux"`
|
||||
2/ launch tmux
|
||||
|
29
config
29
config
@@ -1,29 +0,0 @@
|
||||
# Set history size
|
||||
set -g history-limit 10000
|
||||
|
||||
# Force terminal for 256 colors support
|
||||
set -g default-terminal "screen-256color"
|
||||
|
||||
# Display titles
|
||||
set -g set-titles on
|
||||
set -g set-titles-string "#T"
|
||||
|
||||
# Make splitting more intuitive
|
||||
unbind %
|
||||
bind | split-window -h
|
||||
bind _ split-window -v
|
||||
|
||||
# Keybindings
|
||||
bind -n S-up new-window
|
||||
bind -n S-down new-window
|
||||
|
||||
bind -n C-left prev
|
||||
bind -n C-right next
|
||||
|
||||
bind -n S-left swap-window -t -1
|
||||
bind -n S-right swap-window -t +1
|
||||
|
||||
bind z resize-pane -Z
|
||||
|
||||
# Mouse
|
||||
set -g mouse on
|
@@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd $HOME || exit 1
|
||||
|
||||
CONFDIR=.tmux
|
||||
|
||||
ln -sf $CONFDIR/config .tmux.conf
|
82
tmux.conf
Normal file
82
tmux.conf
Normal file
@@ -0,0 +1,82 @@
|
||||
############### [Personal settings] ###############
|
||||
|
||||
# Windows and panes numbering
|
||||
set -g base-index 1
|
||||
setw -g pane-base-index 1
|
||||
set -g renumber-windows on
|
||||
|
||||
# Terminal colors
|
||||
|
||||
# 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"
|
||||
|
||||
# Display titles
|
||||
set -g set-titles on
|
||||
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
|
||||
# INFO: This is now set by the tmux-pain-control plugin
|
||||
# bind | split-window -h
|
||||
# bind _ split-window -v
|
||||
|
||||
############### [ Keybindings ] ###############
|
||||
|
||||
unbind %
|
||||
|
||||
bind -n S-up new-window
|
||||
bind -n S-down new-window
|
||||
|
||||
bind -n C-left prev
|
||||
bind -n C-right next
|
||||
bind -n C-tab next
|
||||
|
||||
bind -n S-left swap-window -t -1
|
||||
bind -n S-right swap-window -t +1
|
||||
|
||||
bind z resize-pane -Z
|
||||
|
||||
# # bind -n F8 new-window qbco
|
||||
# # 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
|
||||
|
||||
############### [ Mouse support ] ###############
|
||||
|
||||
set -g mouse on
|
||||
|
||||
############### [ Plugins ] ###############
|
||||
|
||||
# Syntax:
|
||||
# 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'
|
||||
|
||||
# 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"
|
||||
|
||||
# Initialize TMUX plugin manager (keep this section at the very bottom of tmux.conf)
|
||||
%hidden TMUX_PLUGINS_DIR="~/.local/state/tmux/plugins"
|
||||
set-environment -g TMUX_PLUGIN_MANAGER_PATH "${TMUX_PLUGINS_DIR}"
|
||||
if "test ! -d ${TMUX_PLUGINS_DIR}" {
|
||||
run "mkdir -p ${TMUX_PLUGINS_DIR} && git clone https://github.com/tmux-plugins/tpm ${TMUX_PLUGINS_DIR}/tpm"
|
||||
run "${TMUX_PLUGINS_DIR}/tpm/bin/install_plugins"
|
||||
}
|
||||
run "${TMUX_PLUGINS_DIR}/tpm/tpm"
|
Reference in New Issue
Block a user