Adding tmux and config
This commit is contained in:
parent
7286240119
commit
a9bbc80feb
2 changed files with 82 additions and 1 deletions
10
configure
vendored
10
configure
vendored
|
@ -46,6 +46,16 @@ case $1 in
|
||||||
git clone git://github.com/vim-voom/VOoM.git
|
git clone git://github.com/vim-voom/VOoM.git
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
"tmux" )
|
||||||
|
echo "Installing tmux config"
|
||||||
|
stow -v tmux
|
||||||
|
# Set up plugin manager
|
||||||
|
mkdir -p ~/.tmux/plugins
|
||||||
|
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
||||||
|
#tmux source ~/.tmux.conf
|
||||||
|
echo "On first tmux start, run 'prefix + I' to install modules"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
* )
|
* )
|
||||||
echo "$1 cannot be installed…"
|
echo "$1 cannot be installed…"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
71
tmux/.tmux.conf
Normal file
71
tmux/.tmux.conf
Normal file
|
@ -0,0 +1,71 @@
|
||||||
|
# GNU Screen prefix
|
||||||
|
unbind C-b
|
||||||
|
set -g prefix C-a
|
||||||
|
|
||||||
|
# Open new-window in PWD
|
||||||
|
#bind c new-window -c "#{pane_current_path}"
|
||||||
|
|
||||||
|
# Vi shortcut for copying (frees shortcut for emacs)
|
||||||
|
set-window-option -g mode-keys vi
|
||||||
|
set-window-option -g xterm-keys on
|
||||||
|
|
||||||
|
# Last window
|
||||||
|
#bind-key C-a last-window
|
||||||
|
|
||||||
|
# List of plugins
|
||||||
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-sidebar'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-copycat'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-pain-control'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||||
|
|
||||||
|
# Configuration for tmux-resurrect
|
||||||
|
set -g @resurrect-processes 'mutt journalctl emacs'
|
||||||
|
set -g @resurrect-strategy-vim 'session'
|
||||||
|
|
||||||
|
# statusbar --------------------------------------------------------------
|
||||||
|
set -g display-time 2000
|
||||||
|
|
||||||
|
# allow mouse mode
|
||||||
|
set -g mouse-utf8 on
|
||||||
|
set -g mouse on
|
||||||
|
|
||||||
|
# center align the window list
|
||||||
|
set -g status-justify centre
|
||||||
|
set -g status-right "("
|
||||||
|
set -g status-left ")"
|
||||||
|
|
||||||
|
#### COLOUR (Solarized light)
|
||||||
|
# default statusbar colors
|
||||||
|
set-option -g status-bg white #base2
|
||||||
|
set-option -g status-fg yellow #yellow
|
||||||
|
set-option -g status-attr default
|
||||||
|
|
||||||
|
# default window title colors
|
||||||
|
set-window-option -g window-status-fg brightyellow #base00
|
||||||
|
set-window-option -g window-status-bg default
|
||||||
|
#set-window-option -g window-status-attr dim
|
||||||
|
|
||||||
|
# active window title colors
|
||||||
|
set-window-option -g window-status-current-fg brightred #orange
|
||||||
|
set-window-option -g window-status-current-bg default
|
||||||
|
#set-window-option -g window-status-current-attr bright
|
||||||
|
|
||||||
|
# pane border
|
||||||
|
set-option -g pane-border-fg white #base2
|
||||||
|
set-option -g pane-active-border-fg brightcyan #base1
|
||||||
|
|
||||||
|
# message text
|
||||||
|
set-option -g message-bg white #base2
|
||||||
|
set-option -g message-fg brightred #orange
|
||||||
|
|
||||||
|
# pane number display
|
||||||
|
set-option -g display-panes-active-colour blue #blue
|
||||||
|
set-option -g display-panes-colour brightred #orange
|
||||||
|
|
||||||
|
# clock
|
||||||
|
set-window-option -g clock-mode-colour green #green
|
||||||
|
|
||||||
|
# Initialize TMUX plugin manager
|
||||||
|
run '~/.tmux/plugins/tpm/tpm'
|
Loading…
Reference in a new issue