tmux stuff, some vim changes, more env sanity
This commit is contained in:
parent
dfc9b36efe
commit
6b449597f7
|
@ -13,8 +13,12 @@ call plug#begin('~/.config/nvim/bundle')
|
||||||
" let plugin manager manage itself
|
" let plugin manager manage itself
|
||||||
Plug 'junegunn/vim-plug'
|
Plug 'junegunn/vim-plug'
|
||||||
|
|
||||||
|
|
||||||
" plugins
|
" plugins
|
||||||
|
|
||||||
|
Plug 'tpope/vim-obsession' " session ease-of-use
|
||||||
|
Plug 'dhruvasagar/vim-prosession' " more session ease-of-use
|
||||||
|
let g:prosession_dir = '~/.config/nvim/session/'
|
||||||
Plug 'vim-airline/vim-airline' " statusline
|
Plug 'vim-airline/vim-airline' " statusline
|
||||||
" let g:airline_powerline_fonts = 0
|
" let g:airline_powerline_fonts = 0
|
||||||
let g:airline#extensions#tabline#enabled = 1 " automatically displays all buffers when there's only one tab open
|
let g:airline#extensions#tabline#enabled = 1 " automatically displays all buffers when there's only one tab open
|
||||||
|
|
4
env/sh/bashrc
vendored
4
env/sh/bashrc
vendored
|
@ -170,5 +170,7 @@ if [ -t 0 ]; then
|
||||||
. "$HOME/.bashrc_env"
|
. "$HOME/.bashrc_env"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$HOME/.."
|
if [ "$PWD" = "$HOME" ]; then
|
||||||
|
cd "$HOME/.."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
24
env/sh/tmux.conf
vendored
24
env/sh/tmux.conf
vendored
|
@ -6,9 +6,11 @@ bind-key s send-prefix
|
||||||
# statusbar on bottom
|
# statusbar on bottom
|
||||||
set-option -g status-position bottom
|
set-option -g status-position bottom
|
||||||
|
|
||||||
|
# honestly not sure
|
||||||
set -g escape-time 10
|
set -g escape-time 10
|
||||||
setw -g monitor-activity on
|
setw -g monitor-activity on
|
||||||
|
|
||||||
|
# hide tmux status bar by default (prefix H toggles)
|
||||||
set -g status off
|
set -g status off
|
||||||
|
|
||||||
bind-key W resize-pane -x 100
|
bind-key W resize-pane -x 100
|
||||||
|
@ -18,23 +20,24 @@ bind-key v split-window -h
|
||||||
bind-key b split-window
|
bind-key b split-window
|
||||||
|
|
||||||
# iterating
|
# iterating
|
||||||
bind-key H set status
|
|
||||||
bind r source-file ~/.tmux.conf
|
bind r source-file ~/.tmux.conf
|
||||||
|
|
||||||
|
# toggle status bar
|
||||||
|
bind-key H set status
|
||||||
|
|
||||||
# vim copying
|
# vim copying
|
||||||
setw -g mode-keys vi
|
setw -g mode-keys vi
|
||||||
bind-key -t vi-copy 'v' begin-selection
|
bind-key -t vi-copy 'v' begin-selection
|
||||||
bind-key -t vi-copy 'y' copy-selection
|
bind-key -t vi-copy 'y' copy-selection
|
||||||
|
|
||||||
|
# 1-based indexing for keystroke simplicity
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
set -g pane-base-index 1
|
set -g pane-base-index 1
|
||||||
|
|
||||||
# use tmux-resurrect to manage saving/restoring sessions
|
# custom predefined layouts
|
||||||
set -g @resurrect-save 'S'
|
|
||||||
set -g @resurrect-restore 'R'
|
|
||||||
|
|
||||||
bind M-l source-file ~/.tmux/layouts/dev.tmux
|
bind M-l source-file ~/.tmux/layouts/dev.tmux
|
||||||
|
|
||||||
|
# mimic pane switching in and out of vim
|
||||||
is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"'
|
is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"'
|
||||||
bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
|
bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
|
||||||
bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
|
bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
|
||||||
|
@ -42,7 +45,7 @@ bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
|
||||||
bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
|
bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
|
||||||
bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
|
bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
|
||||||
|
|
||||||
# present a menu of URLs to open from the visible pane. sweet.
|
# present a menu of urls to open from the visible pane
|
||||||
bind-key u capture-pane \;\
|
bind-key u capture-pane \;\
|
||||||
save-buffer /tmp/tmux-buffer \;\
|
save-buffer /tmp/tmux-buffer \;\
|
||||||
split-window -l 10 "urlview /tmp/tmux-buffer"
|
split-window -l 10 "urlview /tmp/tmux-buffer"
|
||||||
|
@ -52,10 +55,15 @@ set -g @plugin 'tmux-plugins/tpm'
|
||||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||||
set -g @plugin 'tmux-plugins/tmux-continuum'
|
set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||||
set -g @plugin 'tmux-plugins/tmux-copycat'
|
|
||||||
set -g @plugin 'tmux-plugins/tmux-yank'
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-copycat'
|
||||||
set -g @plugin 'tmux-plugins/tmux-sessionist'
|
set -g @plugin 'tmux-plugins/tmux-sessionist'
|
||||||
|
|
||||||
# initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
# plugin options
|
||||||
|
|
||||||
|
# enable continuum
|
||||||
|
set -g @continuum-restore 'on'
|
||||||
|
|
||||||
|
# initialize tmux plugin manager
|
||||||
run '~/.tmux/plugins/tpm/tpm'
|
run '~/.tmux/plugins/tpm/tpm'
|
||||||
|
|
||||||
|
|
|
@ -4,3 +4,5 @@
|
||||||
name = Daniel Flanagan
|
name = Daniel Flanagan
|
||||||
email = daniel@lytedev.io
|
email = daniel@lytedev.io
|
||||||
|
|
||||||
|
[core]
|
||||||
|
editor = nvim
|
||||||
|
|
|
@ -36,6 +36,9 @@ pacaur -S \
|
||||||
mutt procmail msmtp \
|
mutt procmail msmtp \
|
||||||
ncmpcpp mpd \
|
ncmpcpp mpd \
|
||||||
rsync \
|
rsync \
|
||||||
|
samba \
|
||||||
|
thunar-shares-plugin \
|
||||||
|
nmap \
|
||||||
--noconfirm --noedit
|
--noconfirm --noedit
|
||||||
|
|
||||||
# sudo ln -s /usr/bin/google-chrome-unstable /usr/bin/chrome
|
# sudo ln -s /usr/bin/google-chrome-unstable /usr/bin/chrome
|
||||||
|
|
Reference in a new issue