From 839a009e78af669fb273f7ec2a01d2ca9d713ed2 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Thu, 26 Dec 2019 13:24:13 -0800 Subject: [PATCH] Force nerd tree to always show hidden files and modify gopath setter to work across OSX and Linux --- dotfiles/bash/bashrc | 5 ++--- dotfiles/config/nvim/init.vim | 4 +++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dotfiles/bash/bashrc b/dotfiles/bash/bashrc index 6d2e7ec..11cf83a 100644 --- a/dotfiles/bash/bashrc +++ b/dotfiles/bash/bashrc @@ -94,9 +94,8 @@ export HISTCONTROL=ignoredups # If go is installed, set the $GOPATH to the projects directory created above. -if [[ -x go ]]; then - export GOPATH=$HOME/projects/go -fi +if which go > /dev/null; then export GOPATH=$HOME/projects/go; fi + # ------------ END EXPORTS ------------# diff --git a/dotfiles/config/nvim/init.vim b/dotfiles/config/nvim/init.vim index f925433..ece8dc7 100644 --- a/dotfiles/config/nvim/init.vim +++ b/dotfiles/config/nvim/init.vim @@ -137,8 +137,10 @@ function! NumberToggle() endif endfunc -" Autocmds +" Always show hidden files in nerdtree +let NERDTreeShowHidden=1 +" Autocmds " Auto Clang Formatting