From 8a056969212c2b8fa8dc16dd12dfb26ba34e5029 Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Sun, 15 Sep 2019 06:40:50 -0400 Subject: [PATCH] Add tmux configs --- tmux/.tmux-gitbar | 1 + tmux/.tmux-gitbar.conf | 63 +++++++++++++++++++++++++ tmux/.tmux.conf | 105 +++++++++++++++++++++++++++++++++++++++++ tmux/.tmux.conf.local | 0 tmux/.tmux/plugins/tpm | 1 + 5 files changed, 170 insertions(+) create mode 160000 tmux/.tmux-gitbar create mode 100644 tmux/.tmux-gitbar.conf create mode 100644 tmux/.tmux.conf create mode 100644 tmux/.tmux.conf.local create mode 160000 tmux/.tmux/plugins/tpm diff --git a/tmux/.tmux-gitbar b/tmux/.tmux-gitbar new file mode 160000 index 0000000..6266946 --- /dev/null +++ b/tmux/.tmux-gitbar @@ -0,0 +1 @@ +Subproject commit 6266946f530a0873919c6b6f56f60712e612f11f diff --git a/tmux/.tmux-gitbar.conf b/tmux/.tmux-gitbar.conf new file mode 100644 index 0000000..44df4ef --- /dev/null +++ b/tmux/.tmux-gitbar.conf @@ -0,0 +1,63 @@ +# tmux-gitbar: Git in tmux status bar +# +# Created by Aurélien Rainone +# github.com/aurelien-rainone/tmux-gitbar + +# +# This is the tmux-gitbar configuration file +# + +# Location of the status on tmux bar: left or right +readonly TMGB_STATUS_LOCATION='left' + +# Style for tmux-gitbar +readonly TMGB_STYLE='bg=black,fg=white,bright' + + +# Symbols shown in status string. +# Can also be found in tmux-gitbar/lib/tmux-gitbar.sh +NO_REMOTE_TRACKING_SYMBOL="L" +#BRANCH_SYMBOL="⎇ " +BRANCH_SYMBOL="" +STAGED_SYMBOL="●" +CONFLICT_SYMBOL="✖" +CHANGED_SYMBOL="✚" +UNTRACKED_SYMBOL="…" +STASHED_SYMBOL="⚑" +CLEAN_SYMBOL="✔" +AHEAD_SYMBOL="↑·" +BEHIND_SYMBOL="↓·" +PREHASH_SYMBOL=":" + +# Defaut Tmux format strings for Git bar components. +BRANCH_FMT="#[fg=white]" +UPSTREAM_FMT="#[fg=cyan]" +REMOTE_FMT="#[fg=cyan]" +CLEAN_FMT="#[fg=green,bold]" +STAGED_FMT="#[fg=red,bold]" +CONFLICTS_FMT="#[fg=red,bold]" +CHANGED_FMT="#[fg=blue,bold]" +STASHED_FMT="#[fg=blue,bold]" +UNTRACKED_FMT="#[fg=magenta,bold]" +RESET_FMT="#[fg=default]" + +# Delimiter between symbol and numeric value +FLAGS_DELIMITER_FMT=" " +SYMBOL_DELIMITER_FMT=" " +SPLIT_DELIMITER_FMT="| " + +TMGB_OUTREPO_STATUS="" +TMGB_OUTREPO_STYLE="" + + +# Status line format string definition. +# It controls what tmux-gitbar will show in the status line. It accepts +# any keyword or variable Tmux originally accepts, plus these ones: +# +# - #{git_branch} : local branch name +# - #{git_remote} : remote tracking branch +# - #{git_upstream} : upstream branch info +# - #{git_flags} : working tree status flags +# +# See README.md for additional information +readonly TMGB_STATUS_STRING=" #{git_branch} - #{git_upstream} - #{git_remote} #{git_flags}" diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf new file mode 100644 index 0000000..dfaf7a6 --- /dev/null +++ b/tmux/.tmux.conf @@ -0,0 +1,105 @@ +set-option -g status-position top +# Can't use theme plugin without risk of repo update overwriting data? +#source-file "${HOME}/.tmux-themepack/powerline/double/green.tmuxtheme" + +# +# Powerline Double Green - Tmux Theme +# Created by Jim Myhrberg . +# +# Inspired by vim-powerline: https://github.com/Lokaltog/powerline +# +# Requires terminal to be using a powerline compatible font, find one here: +# https://github.com/Lokaltog/powerline-fonts +# + +# Status update interval +set -g status-interval 1 + +# Basic status bar colors +set -g status-style fg=colour240,bg=colour233 + +# Left side of status bar +set -g status-left-style bg=colour233,fg=colour243 +set -g status-left-length 40 +#set -g status-left "#[fg=colour233,bg=colour100,bold] #S #[fg=colour100,bg=colour240,nobold]#[fg=colour233,bg=colour240] #(whoami) #[fg=colour240,bg=colour235]#[fg=colour240,bg=colour235] #I:#P #[fg=colour235,bg=colour208]#[fg=colour240,bg=colour208] #{git_remote} #{git_flags} #[fg=colour208,bg=colour233,nobold]" + +set -g status-left "#[fg=colour233,bg=colour100,bold] #S #[fg=colour100,bg=colour240,nobold]#[fg=colour233,bg=colour240] #(whoami) #[fg=colour240,bg=colour235]#[fg=colour240,bg=colour235] #I:#P #[fg=colour235,bg=colour233]#[fg=colour240,bg=colour235]" + + +# Tmux Git +#let -g status-left "#[fg=colour233,bg=colour100,bold] #S #[fg=colour100,bg=colour240,nobold]#[fg=colour233,bg=colour240] #(whoami) #[fg=colour240,bg=colour235]#[fg=colour240,bg=colour235] #I:#P #[fg=colour235,bg=colour208]#[fg=colour240,bg=colour208] #{git_remote} #{git_flags} #[fg=colour208,bg=colour233,nobold]" + +# Right side of status bar +set -g status-right-style bg=colour233,fg=colour243 +set -g status-right-length 150 + +# Hide right bar entirely +set -g status-right "" + +# Default +set -g status-right "#[fg=colour235,bg=colour233]#[fg=colour240,bg=colour235] %H:%M:%S #[fg=colour240,bg=colour235]#[fg=colour233,bg=colour240] %d-%b-%y #[fg=colour100,bg=colour240]#[fg=colour233,bg=colour100,bold] #H " + +# Simple Git +#set -g status-right "#[fg=colour235,bg=colour233] #{simple_git_status} #[fg=colour240,bg=colour235] %H:%M:%S #[fg=colour240,bg=colour235]#[fg=colour233,bg=colour240] %d-%b-%y #[fg=colour100,bg=colour240]#[fg=colour233,bg=colour100,bold] #H " + +# Tmux Git +#set -g status-right "#[fg=colour208,bg=colour233]#[fg=colour235,bg=colour208] #{git_upstream} #{git_branch} #[fg=colour240,bg=colour235] %H:%M:%S #[fg=colour240,bg=colour235]#[fg=colour233,bg=colour240] %d-%b-%y #[fg=colour100,bg=colour240]#[fg=colour233,bg=colour100,bold] #H " + +# Window status +set -g window-status-format " #I:#W#F (TMUX OTHER STATUS) #(pwd | sed -e "s|.*/\(.*/.*\)|\1|") " +set -g window-status-current-format "#[fg=colour233,bg=black]#[fg=colour190,nobold] #W -> #(pwd | sed -e "s|.*/\(.*/.*\)|\1|") #[fg=colour233,bg=black,nobold]" +# #{pane_current_path} + +# Current window status +set -g window-status-current-style bg=colour100,fg=colour235 + +# Window with activity status +set -g window-status-activity-style bg=colour233,fg=colour245 + +# Window separator +set -g window-status-separator "" + +# Window status alignment +set -g status-justify centre + +# Pane border +set -g pane-border-style bg=default,fg=colour238 + +# Active pane border +set -g pane-active-border-style bg=default,fg=colour100 + +# Pane number indicator +set -g display-panes-colour colour233 +set -g display-panes-active-colour colour245 + +# Clock mode +set -g clock-mode-colour colour100 +set -g clock-mode-style 24 + +# Message +set -g message-style bg=colour100,fg=black + +# Command message +set -g message-command-style bg=colour233,fg=black + + + +source-file "$HOME/.tmux-gitbar/tmux-gitbar.tmux" +set -g default-terminal "screen-256color" + +# Mode +set -g mode-style bg=colour100,fg=colour235 + +# List of plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +#set -g @plugin 'kristijanhusak/tmux-simple-git-status' + + +# Other examples: +# set -g @plugin 'github_username/plugin_name' +# set -g @plugin 'git@github.com/user/plugin' +# set -g @plugin 'git@bitbucket.com/user/plugin' + +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +run -b '~/.tmux/plugins/tpm/tpm' diff --git a/tmux/.tmux.conf.local b/tmux/.tmux.conf.local new file mode 100644 index 0000000..e69de29 diff --git a/tmux/.tmux/plugins/tpm b/tmux/.tmux/plugins/tpm new file mode 160000 index 0000000..26d9ace --- /dev/null +++ b/tmux/.tmux/plugins/tpm @@ -0,0 +1 @@ +Subproject commit 26d9ace1b47f4591b2afdf333442a498311b6ace