Skip to content

πŸ€– 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.

License

Notifications You must be signed in to change notification settings

GabrielFlores8227/Tmux-Config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

47 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

My Tmux .tmux.conf

This repository contains Tmux configuration file (.tmux.conf)

version

πŸ–₯️ Demo

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.

GIF

πŸ“ List of Plugins

  • TPM (Tmux Plugin Manager)

  • Tmux Sensible

  • Dracula (with powerline and additional plugins for CPU usage, GPU usage, and RAM usage)

⚠️ Required Packages

  • NerdFonts

⚑ Quick Installation

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.

πŸ“¦ Dependencies to be Installed

⚑ Execute

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.

πŸ“Ž Keybindings

  • Copy mode: Ctrl+Shift+C
  • Pane navigation:
    • Vertical split: Ctrl+v
    • Horizontal split: Ctrl+h
  • 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'

πŸ“– License

This script is licensed under the MIT License.

Feel free to use, modify, and distribute this script as per the terms of the license.

License: MIT

About

πŸ€– 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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages