Created
July 22, 2015 15:16
-
-
Save ashb/20ac163eddfa8779a355 to your computer and use it in GitHub Desktop.
My 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 -g default-terminal "screen-256color" | |
# reattach-to-user-namespace is so that `pbpaste` and `pbcopy` work after reattaching. Mostly. `brew install reattach-to-user-namespace` | |
set -g default-command "reattach-to-user-namespace -l bash" | |
# Start numbering windows from 0, not 1 | |
set -g base-index 0 | |
# Renumber windows when we close one. | |
set -g renumber-windows on | |
# Lots more scroll back. ^b [ to enter scroll back mode, ^c to leave it | |
set -g history-limit 9999 | |
# So i can detach via ^b ^d rather than ^b d | |
bind ^d detach-client | |
# Open new panes/splits/windows in the same path as we currently are. Needed since about tmux 1.8 | |
bind '"' split-window -c "#{pane_current_path}" | |
bind % split-window -h -c "#{pane_current_path}" | |
bind c new-window -c "#{pane_current_path}" | |
# Ctrl-shift-Arrow to move windows around | |
bind-key -n C-S-Left swap-window -t -1 | |
bind-key -n C-S-Right swap-window -t +1 | |
# Themeing | |
set -w -g window-status-current-bg red | |
set -g status-utf8 on | |
set -g status-bg black | |
set -g status-fg white | |
set -g status-left-length 40 | |
# Show the session name on the left | |
# ^b $ to rename your session. | |
set -g status-left '#[fg=yellow]#{session_name} ⧉ ' | |
# Show the battery % and charge status, hostname and time on the right | |
# `brew install battery` to get this working. | |
set -g status-right '🔋 #(battery -t) #[fg=yellow]#h #[fg=blue]%H:%M' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment