From b24156c1e59ab014c6589f69ad853a43a208c686 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 30 Oct 2018 12:01:45 +0100 Subject: tmux --- tmux/.tmux.default.conf | 36 ++++++++++++++++++++++++++++++++++++ tmux/.tmux.uberspace.conf | 36 ++++++++++++++++++++++++++++++++++++ zsh/.zshrc | 12 +++++++----- 3 files changed, 79 insertions(+), 5 deletions(-) create mode 100644 tmux/.tmux.default.conf create mode 100644 tmux/.tmux.uberspace.conf diff --git a/tmux/.tmux.default.conf b/tmux/.tmux.default.conf new file mode 100644 index 0000000..23141ed --- /dev/null +++ b/tmux/.tmux.default.conf @@ -0,0 +1,36 @@ +# act like vim +setw -g mode-keys vi +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R +bind-key -r C-h select-window -t :- +bind-key -r C-l select-window -t :+ + +# act like GNU screen +unbind C-b +set -g prefix C-a + +# look good +set -g default-terminal "screen-256color" + +# status +set -g status-left-length 32 +set -g status-right-length 150 +set -g status-fg white +set -g status-bg colour234 +set -g window-status-activity-attr bold +set -g pane-border-fg colour245 +set -g pane-active-border-fg white +set -g message-fg colour16 +set -g message-bg colour221 +set -g message-attr bold +set -g status-left '' +set -g status-right '#[fg=black,bg=white] #H:#[bold]#S ' +set-option -g set-titles on +set -g set-titles-string '#T -- #W' +set-window-option -g automatic-rename on +set-option -g status-interval 1 +set-option -g status-utf8 on +set-window-option -g utf8 on + diff --git a/tmux/.tmux.uberspace.conf b/tmux/.tmux.uberspace.conf new file mode 100644 index 0000000..ac7d751 --- /dev/null +++ b/tmux/.tmux.uberspace.conf @@ -0,0 +1,36 @@ +# act like vim +setw -g mode-keys vi +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R +bind-key -r C-h select-window -t :- +bind-key -r C-l select-window -t :+ + +# act like GNU screen +unbind C-b +set -g prefix C-a + +# look good +set -g default-terminal "screen-256color" + +# status +set -g status-left-length 32 +set -g status-right-length 150 +set -g status-fg white +set -g status-bg colour234 +set -g window-status-activity-attr bold +set -g pane-border-fg colour245 +set -g pane-active-border-fg green +set -g message-fg colour16 +set -g message-bg colour221 +set -g message-attr bold +set -g status-left '' +set -g status-right '#[fg=black,bg=green] #H:#[bold]#S ' +set-option -g set-titles on +set -g set-titles-string '#T -- #W' +set-window-option -g automatic-rename on +set-option -g status-interval 1 +set-option -g status-utf8 on +set-window-option -g utf8 on + diff --git a/zsh/.zshrc b/zsh/.zshrc index 7027fc7..7a20dc7 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -228,10 +228,12 @@ case `hostname` in *.uberspace.de) HOSTCOLOR_BG=green HOSTCOLOR_FG=black + alias tmux="tmux -f ~/.tmux.gcloud.conf" ;; *) HOSTCOLOR_BG=black HOSTCOLOR_FG=white + alias tmux="tmux -f ~/.tmux.default.conf" ;; esac @@ -243,11 +245,11 @@ if [[ $(on_gcloud) == "yes" ]]; then fi # aws -#if [[ $(on_aws) == "yes" ]]; then -# HOSTCOLOR_BG=yellow -# HOSTCOLOR_FG=black -# alias tmux="tmux -f ~/.tmux.aws.conf" -#fi +if [[ $(on_aws) == "yes" ]]; then + HOSTCOLOR_BG=yellow + HOSTCOLOR_FG=black + alias tmux="tmux -f ~/.tmux.aws.conf" +fi function chpwd { -- cgit v1.2.3