Add a dotfiles directory, and start configuring stow in it.
This commit is contained in:
30
dotfiles/.stow-local-ignore
Normal file
30
dotfiles/.stow-local-ignore
Normal file
@ -0,0 +1,30 @@
|
||||
# The default stow-ignore settings
|
||||
# -------------------------------------
|
||||
# Comments and blank lines are allowed.
|
||||
|
||||
RCS
|
||||
.+,v
|
||||
|
||||
CVS
|
||||
\.\#.+ # CVS conflict files / emacs lock files
|
||||
\.cvsignore
|
||||
|
||||
\.svn
|
||||
_darcs
|
||||
\.hg
|
||||
|
||||
\.git
|
||||
\.gitignore
|
||||
\.gitmodules
|
||||
|
||||
.+~ # emacs backup files
|
||||
\#.*\# # emacs autosave files
|
||||
|
||||
^/README.*
|
||||
^/LICENSE.*
|
||||
^/COPYING
|
||||
# -------------------------------------
|
||||
#
|
||||
# My customizations
|
||||
Makefile
|
||||
\.DS_Store
|
6
dotfiles/Makefile
Normal file
6
dotfiles/Makefile
Normal file
@ -0,0 +1,6 @@
|
||||
test:
|
||||
@echo Test mode, run \"make all\" to enact changes
|
||||
stow -v --no --dotfiles --target ~ .
|
||||
|
||||
all:
|
||||
stow -v --dotfiles --target ~ .
|
67
dotfiles/dot-config/tmux/tmux.conf
Normal file
67
dotfiles/dot-config/tmux/tmux.conf
Normal file
@ -0,0 +1,67 @@
|
||||
# Change keybinding from C-b to C-a (screenlike)
|
||||
unbind C-b
|
||||
set-option -g prefix C-a
|
||||
bind a send-prefix
|
||||
|
||||
# Change previous window binding from l to C-a (screenlike)
|
||||
unbind l
|
||||
bind C-a last-window
|
||||
|
||||
# Reload configs for faster config testing
|
||||
bind r source-file ~/.config/tmux/tmux.conf \; display "Reloaded…"
|
||||
|
||||
# start numbering windows at 1
|
||||
set -g base-index 1
|
||||
set-window-option -g pane-base-index 1
|
||||
|
||||
set-window-option -g automatic-rename on
|
||||
set-option -g set-titles on
|
||||
|
||||
set -g default-terminal screen-256color
|
||||
set -g status-keys vi
|
||||
set -g history-limit 1000
|
||||
|
||||
setw -g mode-keys vi
|
||||
# For newer tmux-en use mode-mouse
|
||||
# setw -g mode-mouse on
|
||||
setw -g mouse on
|
||||
setw -g monitor-activity on
|
||||
|
||||
# Don't insert a delay before sending escape
|
||||
set -sg escape-time 0
|
||||
|
||||
# Bind Alt-<vi arrow) to pane switching
|
||||
bind -n M-h select-pane -L
|
||||
bind -n M-j select-pane -D
|
||||
bind -n M-k select-pane -U
|
||||
bind -n M-l select-pane -R
|
||||
|
||||
# Set the visual style for a window that received a bell
|
||||
set-window-option -g window-status-bell-style bg=color167,fg=colour235 # bg=redish, fg=black
|
||||
|
||||
# Set up the status bar
|
||||
set-option -g status-left-length 30
|
||||
set-option -g status-style fg=colour136,bg=colour235 # fg=brown, bg=black
|
||||
set-option -g status-left "#[fg=green]tdkvxyvkv7 #[fg=white]☰ #[default]"
|
||||
set-option -ag status-right " #[fg=white,bg=default]%H:%M#[default] #[fg=white]%Y-%m-%d"
|
||||
set-option -g status-right " #[fg=white,bg=default]%H:%M#[default] #[fg=white]%Y-%m-%d"
|
||||
set-window-option -g window-status-current-style fg=colour166,bg=colour235
|
||||
|
||||
# Install the tmux plugin manager
|
||||
# git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
||||
# List of plugins
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
set -g @plugin 'omerxx/tmux-sessionx'
|
||||
|
||||
# Other examples:
|
||||
# set -g @plugin 'github_username/plugin_name'
|
||||
# set -g @plugin 'github_username/plugin_name#branch'
|
||||
# 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 '~/.tmux/plugins/tpm/tpm'
|
||||
|
||||
# Some good scrollback/copy/paste info
|
||||
# https://dev.to/iggredible/the-easy-way-to-copy-text-in-tmux-319g
|
Reference in New Issue
Block a user