mirror of
https://github.com/Lissy93/dotfiles.git
synced 2025-06-27 12:31:21 +02:00
Docs to tmux.conf
This commit is contained in:
parent
2586088d7e
commit
40fd24a95b
@ -1,30 +1,70 @@
|
|||||||
|
|
||||||
# To copy, left click and drag to highlight text in yellow,
|
|
||||||
# once you release left click yellow text will disappear and will automatically be available in clibboard
|
######################################################################
|
||||||
|
# Tmux Configuration File (~/.tmux.conf) #
|
||||||
|
######################################################################
|
||||||
|
# Config for Tmux multiplexer (requires version >= v2.4) #
|
||||||
|
# Sets preferences, keybindings and configures plugins #
|
||||||
|
# For docs and more info, see: https://github.com/lissy93/dotfiles #
|
||||||
|
# #
|
||||||
|
# Licensed under MIT (C) Alicia Sykes 2022 <https://aliciasykes.com> #
|
||||||
|
######################################################################
|
||||||
|
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
# Basics #
|
||||||
|
######################################################################
|
||||||
|
|
||||||
# Use vim keybindings in copy mode
|
# Use vim keybindings in copy mode
|
||||||
setw -g mode-keys vi
|
setw -g mode-keys vi
|
||||||
|
|
||||||
|
# Allow mouse support
|
||||||
|
set -g mouse on
|
||||||
|
|
||||||
|
# Use wider color pallete
|
||||||
|
set -g default-terminal screen-256color
|
||||||
|
|
||||||
|
# Set bigger history limit
|
||||||
|
set -g history-limit 20000
|
||||||
|
|
||||||
|
# Set Esc delay after prefix
|
||||||
|
set -sg escape-time 20
|
||||||
|
|
||||||
|
# Keep Tmux alive when the initial command is finished
|
||||||
|
set -g remain-on-exit off
|
||||||
|
|
||||||
|
# Sets parent terminal title, same as current Tmux window
|
||||||
|
set -g set-titles on
|
||||||
|
set -g set-titles-string "#I:#W"
|
||||||
|
|
||||||
# Update default binding of `Enter` to also use copy-pipe
|
# Update default binding of `Enter` to also use copy-pipe
|
||||||
unbind -T copy-mode-vi Enter
|
unbind -T copy-mode-vi Enter
|
||||||
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -selection c"
|
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -selection c"
|
||||||
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard"
|
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard"
|
||||||
|
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
# Navigation #
|
||||||
|
######################################################################
|
||||||
|
|
||||||
# Allow Alt+Arrow to switch pains
|
# Allow Alt+Arrow to switch pains
|
||||||
bind -n M-Left select-pane -L
|
bind -n M-Left select-pane -L
|
||||||
bind -n M-Right select-pane -R
|
bind -n M-Right select-pane -R
|
||||||
bind -n M-Up select-pane -U
|
bind -n M-Up select-pane -U
|
||||||
bind -n M-Down select-pane -D
|
bind -n M-Down select-pane -D
|
||||||
|
|
||||||
# Allow mouse support
|
# Split window horizontally (h) / veritcally (v)
|
||||||
set -g mouse on
|
bind v split-window -v
|
||||||
|
bind h split-window -h
|
||||||
|
|
||||||
# Activity Monitoring (for when something happens in another pain)
|
# Activity Monitoring (for when something happens in another pain)
|
||||||
set -g monitor-activity on
|
set -g monitor-activity on
|
||||||
set -g visual-activity on
|
set -g visual-activity on
|
||||||
|
|
||||||
# Use wider color pallete
|
|
||||||
set -g default-terminal screen-256color
|
######################################################################
|
||||||
|
# Plugin Imports and Configurations #
|
||||||
|
######################################################################
|
||||||
|
|
||||||
# Set install location for plugins
|
# Set install location for plugins
|
||||||
set-environment -g TMUX_PLUGIN_MANAGER_PATH "${XDG_DATA_HOME}/tmux/plugins"
|
set-environment -g TMUX_PLUGIN_MANAGER_PATH "${XDG_DATA_HOME}/tmux/plugins"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user