feat(*): initial commit
This commit is contained in:
86
tmux/dot-tmux.conf
Normal file
86
tmux/dot-tmux.conf
Normal file
@@ -0,0 +1,86 @@
|
||||
set -g default-terminal "xterm-256color"
|
||||
#set -ga terminal-overrides ",*256col*:Tc"
|
||||
set -ga terminal-overrides ",xterm-256color:Tc"
|
||||
# action key
|
||||
unbind C-b
|
||||
set-option -g prefix C-t
|
||||
set-option -g repeat-time 0
|
||||
|
||||
#### Key bindings
|
||||
|
||||
set-window-option -g mode-keys vi
|
||||
|
||||
#bind t send-key C-t
|
||||
# Reload settings
|
||||
bind r source-file ~/.tmux.conf \; display "Reloaded!"
|
||||
# Open current directory
|
||||
bind o run-shell "open #{pane_current_path}"
|
||||
bind -r e kill-pane -a
|
||||
|
||||
# vim-like pane switching
|
||||
bind -r k select-pane -U
|
||||
bind -r j select-pane -D
|
||||
bind -r h select-pane -L
|
||||
bind -r l select-pane -R
|
||||
|
||||
# Moving window
|
||||
bind-key -n C-S-Left swap-window -t -1 \; previous-window
|
||||
bind-key -n C-S-Right swap-window -t +1 \; next-window
|
||||
|
||||
# Resizing pane
|
||||
bind -r C-k resize-pane -U 5
|
||||
bind -r C-j resize-pane -D 5
|
||||
bind -r C-h resize-pane -L 5
|
||||
bind -r C-l resize-pane -R 5
|
||||
|
||||
#### basic settings
|
||||
|
||||
set-option -g status-justify "left"
|
||||
#set-option utf8-default on
|
||||
#set-option -g mouse-select-pane
|
||||
set-window-option -g mode-keys vi
|
||||
#set-window-option -g utf8 on
|
||||
# look'n feel
|
||||
set-option -g status-fg cyan
|
||||
set-option -g status-bg black
|
||||
set -g pane-active-border-style fg=colour166,bg=default
|
||||
set -g window-style fg=colour10,bg=default
|
||||
set -g window-active-style fg=colour12,bg=default
|
||||
set-option -g history-limit 64096
|
||||
|
||||
set -sg escape-time 10
|
||||
|
||||
#### COLOUR
|
||||
|
||||
# default statusbar colors
|
||||
set-option -g status-style bg=colour235,fg=colour136,default
|
||||
|
||||
# default window title colors
|
||||
set-window-option -g window-status-style fg=colour244,bg=colour234,dim
|
||||
|
||||
# active window title colors
|
||||
set-window-option -g window-status-current-style fg=colour166,bg=default,bright
|
||||
|
||||
# pane border
|
||||
set-option -g pane-border-style fg=colour235 #base02
|
||||
set-option -g pane-active-border-style fg=colour136,bg=colour235
|
||||
|
||||
# message text
|
||||
set-option -g message-style bg=colour235,fg=colour166
|
||||
|
||||
# pane number display
|
||||
set-option -g display-panes-active-colour colour33 #blue
|
||||
set-option -g display-panes-colour colour166 #orange
|
||||
|
||||
# clock
|
||||
set-window-option -g clock-mode-colour colour64 #green
|
||||
|
||||
# allow the title bar to adapt to whatever host you connect to
|
||||
set -g set-titles on
|
||||
set -g set-titles-string "#T"
|
||||
|
||||
# import
|
||||
if-shell "uname -s | grep -q Darwin" "source ~/.tmux.conf.osx"
|
||||
|
||||
# Powerline
|
||||
source ~/.tmux.powerline.conf
|
||||
2
tmux/dot-tmux.conf.osx
Normal file
2
tmux/dot-tmux.conf.osx
Normal file
@@ -0,0 +1,2 @@
|
||||
# sync clipboard
|
||||
set-option -g default-command "which reattach-to-user-namespace > /dev/null && reattach-to-user-namespace -l $SHELL || $SHELL"
|
||||
21
tmux/dot-tmux.powerline.conf
Normal file
21
tmux/dot-tmux.powerline.conf
Normal file
@@ -0,0 +1,21 @@
|
||||
# vim: ft=tmux
|
||||
|
||||
if-shell 'test -z "$POWERLINE_CONFIG_COMMAND"' 'set-environment -g POWERLINE_CONFIG_COMMAND powerline-config'
|
||||
|
||||
# Don't version-check for this core functionality -- anything too old to
|
||||
# support these options likely won't work well with powerline
|
||||
set -g status on
|
||||
set -g status-interval 2
|
||||
set -g status-left-length 60
|
||||
set -g status-left '#[fg=colour235,bg=colour252,bold] #S #[fg=colour252,bg=colour238,nobold]#[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour234,nobold]'
|
||||
|
||||
set -g status-right-length 150
|
||||
set -g status-right '#[fg=colour59]#[fg=colour255,bg=colour59] #[fg=colour254,bold]#[fg=colour16,bg=colour254,bold] #h '
|
||||
|
||||
set -g window-status-separator '#[fg=colour244,bg=colour234] '
|
||||
set -g window-status-format "#[fg=colour244,bg=colour234] #I #[fg=colour240] #[default,bg=colour234]#W "
|
||||
set -g window-status-current-format "#[fg=colour234,bg=colour31]#[fg=colour117,bg=colour31] #I #[fg=colour231,bold]#W #[fg=colour31,bg=colour234,nobold]"
|
||||
|
||||
|
||||
# load powerline
|
||||
if-shell 'env "$POWERLINE_CONFIG_COMMAND" tmux setup' '' 'run-shell "powerline-config tmux setup"'
|
||||
Reference in New Issue
Block a user