fix tmux plugins and $TERM, modify addpaths

This commit is contained in:
Hedy Li 2021-08-18 12:15:10 +08:00
parent 4e1c9249a0
commit 015964d221
Signed by: hedy
GPG Key ID: B51B5A8D1B176372
3 changed files with 14 additions and 6 deletions

View File

@ -3,4 +3,5 @@ local/bin
.local/bin
.doomemacs/bin
go/bin
node_modules/.bin
/usr/local/go/bin

View File

@ -1,11 +1,13 @@
set-environment -g PATH "/home/hedy/local/bin:/usr/local/bin:/bin:/usr/bin"
# Quick ESC reponse in (n)vim
set -sg escape-time 0
set -g visual-activity off
# terminal stuff
# set -g default-terminal "tmux-256-color"
# set -g terminal-overrides ",xterm-256color*:Tc"
set -g default-terminal "tmux-256color"
set -g terminal-overrides ",xterm-256color*:Tc"
# Prefix for remote tmux (instead of C-b twice)
bind-key -n C-a send-prefix
@ -18,10 +20,14 @@ bind-key h split-window -v
set -g set-titles on
set -g set-titles-string "#T"
# Plugin
set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H:%M'
set -g @fzf-url-bind 'z'
# Plugins
set -g @plugin 'tmux-plugins/tmp' # plugin manager
set -g @plugin 'tmux-plugins/tpm' # plugin manager
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'wfxr/tmux-fzf-url' # fuzzy select url in buffer
#Initialize plugin manager
run -b '~/.local/share/tmux/plugins/tpm/tpm'
run -b '~/.tmux/plugins/tpm/tpm'

5
bin/nv
View File

@ -1,7 +1,8 @@
#!/usr/bin/env bash
if ! command -v nvim &> /dev/null
then
vim $*
vim "$@"
else
nvim $*
nvim "$@"
fi