Created
September 1, 2016 21:38
-
-
Save zacharyp/452e5a5678ef6b6a57ea8ea736c8eece to your computer and use it in GitHub Desktop.
file .tmux.conf
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 the command prefix to ` | |
set -g prefix "`" | |
unbind-key C-b | |
bind-key "`" send-prefix | |
set -g default-shell /bin/bash | |
set -g default-command bash | |
set -g status-fg white | |
set -g status-bg black | |
set -g status-attr default | |
set -g status-right "#(uptime|awk '{print $11}') #(date)" | |
set -g display-time 3000 | |
# set key mode to vi, of course | |
set-window-option -g mode-keys vi | |
#set-window-option -g mode-mouse on | |
# start window indexing at 1 (not 0) | |
set -g base-index 1 | |
# open a man page in a new split window | |
bind / command-prompt "split-window 'exec man %%'" | |
# quick view of processes | |
bind "~" split-window "exec htop" | |
# ctrl+left/right cycles thru windows | |
bind-key -n C-right next | |
bind-key -n C-left prev | |
# more straightforward bindings to split windows | |
unbind % | |
bind | split-window -h | |
unbind '"' | |
bind - split-window -v | |
# history | |
set -g history-limit 1000 | |
# Terminal emulator window title | |
set -g set-titles on | |
set -g set-titles-string '#S:#I.#P #W' | |
# Notifying if other windows has activities | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Highlighting the active window in status bar | |
setw -g window-status-current-bg red | |
# allow using Page Up/Down for scrollback | |
#set -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
# enable using the mouse to copy and paste stuff | |
# setw -g mode-mouse on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment