From 1a3834480e6bab4f3e68e52f7a9c7e56ef96752a Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Wed, 4 Sep 2019 08:30:00 +0200 Subject: tmux: cleaner --- tmux/.tmux.aws.conf | 5 ----- tmux/.tmux.common.conf | 34 ---------------------------------- tmux/.tmux.conf | 2 +- tmux/.tmux.default.conf | 5 ----- tmux/.tmux.gcloud.conf | 5 ----- tmux/.tmux.uberspace.conf | 5 ----- tmux/.tmux/aws.conf | 5 +++++ tmux/.tmux/common.conf | 34 ++++++++++++++++++++++++++++++++++ tmux/.tmux/default.conf | 5 +++++ tmux/.tmux/gcloud.conf | 5 +++++ tmux/.tmux/uberspace.conf | 5 +++++ zsh/.zshrc | 8 ++++---- 12 files changed, 59 insertions(+), 59 deletions(-) delete mode 100644 tmux/.tmux.aws.conf delete mode 100644 tmux/.tmux.common.conf delete mode 100644 tmux/.tmux.default.conf delete mode 100644 tmux/.tmux.gcloud.conf delete mode 100644 tmux/.tmux.uberspace.conf create mode 100644 tmux/.tmux/aws.conf create mode 100644 tmux/.tmux/common.conf create mode 100644 tmux/.tmux/default.conf create mode 100644 tmux/.tmux/gcloud.conf create mode 100644 tmux/.tmux/uberspace.conf diff --git a/tmux/.tmux.aws.conf b/tmux/.tmux.aws.conf deleted file mode 100644 index b5c1abd..0000000 --- a/tmux/.tmux.aws.conf +++ /dev/null @@ -1,5 +0,0 @@ -source-file ~/.tmux.common.conf - -set -g status-bg yellow -set -g status-fg black - diff --git a/tmux/.tmux.common.conf b/tmux/.tmux.common.conf deleted file mode 100644 index 5de73ad..0000000 --- a/tmux/.tmux.common.conf +++ /dev/null @@ -1,34 +0,0 @@ -# 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-left '' -set -g status-right '#[fg=white,bg=black] #S ' -set-option -g set-titles on -# #H Hostname of local host -# #I Current window index -# #P Current pane index -# #S Session name -# #T Current window title -# #W Current window name -# ## A literal ‘#’ -set -g set-titles-string '#T -- #W' -set-window-option -g automatic-rename on -set-option -g status-interval 1 -set-option -g history-limit 10000 - diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index a1cdddd..04aee71 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -1,4 +1,4 @@ -source-file ~/.tmux.common.conf +source-file ~/.tmux/common.conf set -g status-bg colour13 set -g status-fg colour235 diff --git a/tmux/.tmux.default.conf b/tmux/.tmux.default.conf deleted file mode 100644 index 728a475..0000000 --- a/tmux/.tmux.default.conf +++ /dev/null @@ -1,5 +0,0 @@ -source-file ~/.tmux.common.conf - -set -g status-bg white -set -g status-fg black - diff --git a/tmux/.tmux.gcloud.conf b/tmux/.tmux.gcloud.conf deleted file mode 100644 index d518764..0000000 --- a/tmux/.tmux.gcloud.conf +++ /dev/null @@ -1,5 +0,0 @@ -source-file ~/.tmux.common.conf - -set -g status-bg blue -set -g status-fg white - diff --git a/tmux/.tmux.uberspace.conf b/tmux/.tmux.uberspace.conf deleted file mode 100644 index b8208d7..0000000 --- a/tmux/.tmux.uberspace.conf +++ /dev/null @@ -1,5 +0,0 @@ -source-file ~/.tmux.common.conf - -set -g status-bg green -set -g status-fg black - diff --git a/tmux/.tmux/aws.conf b/tmux/.tmux/aws.conf new file mode 100644 index 0000000..4ea910f --- /dev/null +++ b/tmux/.tmux/aws.conf @@ -0,0 +1,5 @@ +source-file ~/.tmux/common.conf + +set -g status-bg yellow +set -g status-fg black + diff --git a/tmux/.tmux/common.conf b/tmux/.tmux/common.conf new file mode 100644 index 0000000..5de73ad --- /dev/null +++ b/tmux/.tmux/common.conf @@ -0,0 +1,34 @@ +# 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-left '' +set -g status-right '#[fg=white,bg=black] #S ' +set-option -g set-titles on +# #H Hostname of local host +# #I Current window index +# #P Current pane index +# #S Session name +# #T Current window title +# #W Current window name +# ## A literal ‘#’ +set -g set-titles-string '#T -- #W' +set-window-option -g automatic-rename on +set-option -g status-interval 1 +set-option -g history-limit 10000 + diff --git a/tmux/.tmux/default.conf b/tmux/.tmux/default.conf new file mode 100644 index 0000000..1abb019 --- /dev/null +++ b/tmux/.tmux/default.conf @@ -0,0 +1,5 @@ +source-file ~/.tmux/common.conf + +set -g status-bg white +set -g status-fg black + diff --git a/tmux/.tmux/gcloud.conf b/tmux/.tmux/gcloud.conf new file mode 100644 index 0000000..7270636 --- /dev/null +++ b/tmux/.tmux/gcloud.conf @@ -0,0 +1,5 @@ +source-file ~/.tmux/common.conf + +set -g status-bg blue +set -g status-fg white + diff --git a/tmux/.tmux/uberspace.conf b/tmux/.tmux/uberspace.conf new file mode 100644 index 0000000..e5b3cd5 --- /dev/null +++ b/tmux/.tmux/uberspace.conf @@ -0,0 +1,5 @@ +source-file ~/.tmux/common.conf + +set -g status-bg green +set -g status-fg black + diff --git a/zsh/.zshrc b/zsh/.zshrc index 2a215df..99f2570 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -231,22 +231,22 @@ case `hostname -f` in *.uberspace.de) HOSTCOLOR_BG=green HOSTCOLOR_FG=black - alias tmux="tmux -f ~/.tmux.uberspace.conf" + alias tmux="tmux -f ~/.tmux/uberspace.conf" ;; *) HOSTCOLOR_BG=black HOSTCOLOR_FG=white - alias tmux="tmux -f ~/.tmux.default.conf" + alias tmux="tmux -f ~/.tmux/default.conf" # google cloud if [[ $(on_gcloud) == "yes" ]]; then HOSTCOLOR_BG=blue HOSTCOLOR_FG=white - alias tmux="tmux -f ~/.tmux.gcloud.conf" + alias tmux="tmux -f ~/.tmux/gcloud.conf" # aws elif [[ $(on_aws) == "yes" ]]; then HOSTCOLOR_BG=yellow HOSTCOLOR_FG=black - alias tmux="tmux -f ~/.tmux.aws.conf" + alias tmux="tmux -f ~/.tmux/aws.conf" fi ;; esac -- cgit v1.2.3