From 015964d221b10980e0536dcba4385fef9f419c86 Mon Sep 17 00:00:00 2001 From: Hedy Li Date: Wed, 18 Aug 2021 12:15:10 +0800 Subject: [PATCH] fix tmux plugins and $TERM, modify addpaths --- .addpath | 1 + .tmux.conf | 14 ++++++++++---- bin/nv | 5 +++-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.addpath b/.addpath index a1b35e8..afd9674 100644 --- a/.addpath +++ b/.addpath @@ -3,4 +3,5 @@ local/bin .local/bin .doomemacs/bin go/bin +node_modules/.bin /usr/local/go/bin diff --git a/.tmux.conf b/.tmux.conf index 2a5abfc..f51d0a3 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -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' diff --git a/bin/nv b/bin/nv index 1b293f4..a9a2b0e 100755 --- a/bin/nv +++ b/bin/nv @@ -1,7 +1,8 @@ #!/usr/bin/env bash if ! command -v nvim &> /dev/null then - vim $* + vim "$@" else - nvim $* + nvim "$@" fi +