ansible-selfhosted-services/files/tmux.conf
2020-03-24 01:04:18 +01:00

67 lines
1.8 KiB
Bash

#new-session -n $HOST
unbind C-b
set -g prefix C-y
bind-key y send-prefix # For nested tmux sessions
set -g default-terminal "screen-256color"
# BEGIN it
#set-option -g default-shell "/bin/fish"
# END it
# BEGIN tp
#set-option -g default-shell "/usr/bin/fish"
# END tp
set -g history-limit 10000
set -g update-environment "DBUS_SESSION_BUS_ADDRESS DISPLAY SSH_AUTH_SOCK XAUTHORITY"
set -g base-index 1
set-window-option -g pane-base-index 1
#set -g mouse-select-pane on
#set -g mouse on
############################################################################
## Status Bar
#############################################################################
#set-option -g status-utf8 on
#set-option -g status-justify right
#set-option -g status-bg black # colour213 # pink
#set-option -g status-fg cyan
#set-option -g status-interval 5
#set-option -g status-left-length 30
#set-option -g status-left '#[fg=magenta]» #[fg=blue,bold]#T#[default]'
#set-option -g status-right '#[fg=red,bold][[ #(git branch) branch ]] #[fg=cyan]»» #[fg=blue,bold]###S #[fg=magenta]%R %m-%d#(acpi | cut -d ',' -f 2)#[default]'
#set-option -g visual-activity on
# Titles (window number, program name, active (or not)
set-option -g set-titles on
set-option -g set-titles-string '#H:#S.#I.#P #W #T'
set -s escape-time 0
setw -g automatic-rename
setw -g aggressive-resize on
setw -g mode-keys vi
#bind - set default-path $PWD \; split-window -v\; set default-path ~/
#bind | set default-path $PWD \; split-window -h\; set default-path ~/
unbind %
#unbind :
bind - split-window -v
bind | split-window -h
bind-key C-y last-window
bind-key k kill-window
bind-key K kill-session
bind-key c new-window -c "#{pane_current_path}"
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf \; display-message "Config reloaded."
unbind ^A
bind ^A select-pane -t :.+