From 0f28b0c624239e5b9f410a2acd562da6c68ba90a Mon Sep 17 00:00:00 2001 From: Rahsheen Porter Date: Sun, 16 Jan 2022 12:37:12 -0500 Subject: [PATCH] update PATH and vim tweaks --- .config/nvim/init.vim | 6 ++++++ .zshrc | 14 +++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 9db4ee8b..95646ecd 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -26,6 +26,7 @@ nnoremap k gk " FZF Bindings noremap :GFiles +noremap pf :Files nnoremap C :Colors nnoremap :Buffers nnoremap fl :Lines @@ -77,6 +78,7 @@ augroup END " autocmd! " autocmd VimEnter * :Vexplore "augroup END +nnoremap pv :Vex let g:airline_powerline_fonts = 1 let g:airline#extensions#tabline#enabled = 1 @@ -89,3 +91,7 @@ let g:completion_matching_strategy_list = ['exact', 'substring', 'fuzzy'] nmap gs :G nmap gh :diffget //3 nmap gu :diffget //2 + +" Copy to system clipboard +vnoremap y "*y +nnoremap y "*y diff --git a/.zshrc b/.zshrc index 009dbfd9..57c78e92 100644 --- a/.zshrc +++ b/.zshrc @@ -8,6 +8,7 @@ EOF else source "$HOME/antigen/antigen.zsh" + antigen bundle zsh-users/zsh-autosuggestions antigen use oh-my-zsh antigen bundle arialdomartini/oh-my-git antigen theme arialdomartini/oh-my-git-themes oppa-lana-style @@ -40,6 +41,17 @@ cd rvm && ./install EOF else # Add RVM to PATH for scripting. Make sure this is the last PATH variable change. - export PATH="$PATH:$HOME/.rvm/bin" + PATH="$PATH:$HOME/.rvm/bin" fi +# set PATH so it includes user's private bin if it exists +if [ -d "$HOME/bin" ] ; then + PATH="$HOME/bin:$PATH" +fi + +# set PATH so it includes user's private bin if it exists +if [ -d "$HOME/.local/bin" ] ; then + PATH="$HOME/.local/bin:$PATH" +fi + +export PATH