This repository contains Tmux configuration file (.tmux.conf)
This repository contains my personal tmux configuration files. Tmux is a terminal multiplexer that allows me to manage multiple terminal sessions within a single window. With this configuration, I have customized my tmux setup to enhance my productivity and streamline my workflow.
-
TPM (Tmux Plugin Manager)
-
Tmux Sensible
-
Dracula (with powerline and additional plugins for CPU usage, GPU usage, and RAM usage)
- NerdFonts
The unix-driver.sh script is designed to automate the setup of Tmux and its plugins on Unix systems. This efficient script handles the installation of Tmux, essential plugins, and any required dependencies, all while managing necessary sudo privileges.
-
Latest Wget Script (currently commented out)
-
.tmux.conf (installed via wget)
git clone https://github.com/GabrielFlores8227/Tmux-Config \
&& chmod +x ./Tmux-Config/linux-driver.sh \
&& ./Tmux-Config/linux-driver.sh
(Optional) This command uses sed to insert a piece of script at line 1 of the .bashrc file. This will ensure that Tmux is executed right at the beginning when you open a new terminal session.
sed -i '1iif command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then exec tmux; fi' ~/.bashrc
To install the plugins, you simply need to run the tmux command prefix + I (which means pressing Ctrl + b followed by Shift + I). This line tells TPM to install the tmux-resurrect plugin from the tmux-plugins GitHub repository.
- Copy mode:
Ctrl+Shift+C
- Pane navigation:
- Vertical split:
Ctrl+v
- Horizontal split:
Ctrl+h
- Vertical split:
- Switch to the next pane:
Ctrl+s
- Status line configuration: The background is set to the default color.
π» Copy .tmux.conf
# Copy mode key binding
bind-key -n "C-S-c" copy-mode
# Enable mouse support
set -g mouse on
# Pane navigation (Replace C-w to C+s)
unbind-key C-w
bind-key C-s select-pane -t :.+
bind-key -n C-s select-pane -t :.+
# Create a new vertical pane
bind-key -n C-v split-window
# Create a new horizontal pane
bind-key -n C-h split-window -h
# Status line configuration
set -g status-bg default
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @dracula-show-powerline true
set -g @dracula-plugins "cpu-usage gpu-usage ram-usage"
set -g @plugin 'dracula/tmux'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
This script is licensed under the MIT License.
Feel free to use, modify, and distribute this script as per the terms of the license.