Last active
July 19, 2017 10:16
-
-
Save ZeroDeth/3a81f32e59aad8aef19b19703b605960 to your computer and use it in GitHub Desktop.
Tmux Configuration
This file contains 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
# set shell | |
set -g default-shell /bin/zsh | |
# set window number to start from number | |
set -g base-index 1 | |
########################################################################### | |
# General options | |
# Watch for activity in background windows | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Clock | |
setw -g clock-mode-colour cyan | |
setw -g clock-mode-style 24 | |
# Terminal emulator window title | |
#set -g set-titles on | |
set -g set-titles-string '#S:#I.#P #W' | |
# History | |
set -g history-limit 1000 | |
# Mouse support | |
set -g mouse on | |
# Highlighting the active window in status bar | |
setw -g window-status-current-bg '#ffffff' | |
setw -g window-status-current-fg red | |
set-window-option -g window-status-current-attr bright | |
########################################################################### | |
# source config file | |
bind r source-file ${HOME}/.tmux.conf \; display-message "source-file reloaded" | |
# List of plugins | |
set -g @tpm_plugins ' \ | |
tmux-plugins/tpm \ | |
tmux-plugins/tmux-yank \ | |
tmux-plugins/tmux-open \ | |
tmux-plugins/tmux-sensible \ | |
chriszarate/tmux-tasks \ | |
tmux-plugins/tmux-resurrect \ | |
tmux-plugins/tmux-continuum \ | |
tmux-plugins/tmux-copycat \ | |
soyuka/tmux-current-pane-hostname \ | |
' | |
# Plugin for opening highlighted selection directly from Tmux copy mode. | |
run-shell ~/.tmux/plugins/tmux-open/open.tmux | |
# Copy to the system clipboard in tmux. | |
run-shell ~/.tmux/plugins/tmux-yank/yank.tmux | |
# Predefined searches are plugin killer feature. It speeds the workflow and reduces mouse usage with Tmux | |
run-shell ~/.tmux/plugins/tmux-copycat/copycat.tmux | |
# Restore tmux environment after system restart | |
run-shell ~/.tmux/plugins/tmux-resurrect/resurrect.tmux | |
# continuous saving of tmux environment, automatic tmux start when computer/server is turned on, automatic restore when tmux is started | |
run-shell ~/.tmux/plugins/tmux-continuum/continuum.tmux | |
# Tmux plugin that enables displaying hostname and user of the current pane in your status bar. | |
run-shell ~/.tmux/plugins/tmux-current-pane-hostname/current_pane_hostname.tmux | |
# Other examples: | |
# set -g @plugin 'github_username/plugin_name' | |
# set -g @plugin 'git@github.com/user/plugin' | |
# set -g @plugin 'git@bitbucket.com/user/plugin' | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run '~/.tmux/plugins/tpm/tpm' | |
# Fixes iterm2 integration. Should go after "run '~/.tmux/plugins/tpm/tpm'" | |
setw -g aggressive-resize off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment