From 40fd24a95bb1fb614d60f650cbd6ad6fbe18bd63 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 9 Oct 2022 22:55:25 +0100 Subject: [PATCH] Docs to tmux.conf --- tmux/tmux.conf | 52 ++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 46 insertions(+), 6 deletions(-) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 24fd44d..c762f0a 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -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 # +###################################################################### + + +###################################################################### +# Basics # +###################################################################### # Use vim keybindings in copy mode 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 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 MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard" + +###################################################################### +# Navigation # +###################################################################### + # Allow Alt+Arrow to switch pains bind -n M-Left select-pane -L bind -n M-Right select-pane -R bind -n M-Up select-pane -U bind -n M-Down select-pane -D -# Allow mouse support -set -g mouse on +# Split window horizontally (h) / veritcally (v) +bind v split-window -v +bind h split-window -h # Activity Monitoring (for when something happens in another pain) set -g monitor-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-environment -g TMUX_PLUGIN_MANAGER_PATH "${XDG_DATA_HOME}/tmux/plugins"