dotfiles: init

This commit is contained in:
2018-10-30 23:34:18 +02:00
commit 1826e633c1
12 changed files with 1419 additions and 0 deletions

89
tmux/.tmux.conf Normal file
View File

@@ -0,0 +1,89 @@
# NOTE: First of all install TPM
# git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
unbind-key C-b
set -g prefix C-a
set-clipboard on
set-option -g default-command "reattach-to-user-namespace -l bash"
# Set the base index for windows to 1 instead of 0.
set -g base-index 1
# Set the base index for panes to 1 instead of 0.
setw -g pane-base-index 1
# Vi-mode
set -g mode-keys vi
# Enable activity alerts.
set -g visual-activity off
# Renumber windows when a window is closed
set -g renumber-windows on
# => Theme
set -g status-bg black
set -g status-fg white
set -g window-status-current-bg white
set -g window-status-current-fg black
set -g window-status-current-attr bold
# Default window title colors
setw -g window-status-fg colour244 #base0
setw -g window-status-bg default
# Active window title colors
setw -g window-status-current-fg colour166 #orange
setw -g window-status-current-bg default
# Message text
set -g message-bg colour235 #base02
set -g message-fg colour166 #orange
set -g window-status-format " #W "
set -g window-status-current-format " #W "
set -g status-left ''
set -g status-right ''
set -g status-justify centre
# => Bindings
# Kill pane without confirmation
bind-key x kill-pane
bind-key \ split-window -h
bind-key - split-window -v
# Painless copying with tmux-yank
unbind [
bind Escape copy-mode
setw -g mode-keys vi
unbind-key -T copy-mode-vi v
bind-key -T copy-mode-vi 'v' send -X begin-selection # Begin selection in copy mode.
bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle # Begin selection in copy mode.
bind-key -T copy-mode-vi 'y' send -X copy-selection # Yank selection in copy mode.
bind-key -t copy-mode-vi 'K' halfpage-up
bind-key -t copy-mode-vi 'J' halfpage-down
# => Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Depends on 'urlview'
set -g @plugin 'tmux-plugins/tmux-urlview'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-open'
# Default keysbindings for panes
set -g @plugin 'tmux-plugins/tmux-pain-control'
# If run as "tmux attach", create a session if one does not already exist
new-session -A -s main
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'