Last active
November 18, 2024 08:52
-
-
Save ivandev-81/249cd456586d86191acf62cf339fcf6a to your computer and use it in GitHub Desktop.
ivan ~/.tmux.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Powerline status bar | |
# for Debian/Ubuntu & Arch distros: | |
# source /usr/share/powerline/bindings/tmux/powerline.conf | |
# for Fedora: | |
# sudo dnf install powerline powerline-fonts tmux-powerline | |
source "/usr/share/tmux/powerline.conf" | |
# remap prefix from 'C-b' to 'C-a' | |
# source: https://hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/ (hamvocke) | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# split panes using | and - | |
# source: hamvocke | |
bind | split-window -h | |
bind - split-window -v | |
unbind '"' | |
unbind % | |
# switch panes using Alt-arrow without prefix | |
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 | |
# Enabling mouse control (clickable windows, panes, resizable panes) | |
set -g mouse on | |
# save the current pane with C-a C-s | |
bind C-s capture-pane -S - \; save-buffer $HOME/scrollback.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment