From 1eda0c2d9c6694316eeff438a5320b9c9cbc5ae6 Mon Sep 17 00:00:00 2001 From: Joe Papperello Date: Thu, 14 Jun 2018 15:57:38 +0000 Subject: [PATCH] fd alias --- bashrc | 7 +++++++ vimrc | 6 +----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/bashrc b/bashrc index 16f94b2..4cfc059 100644 --- a/bashrc +++ b/bashrc @@ -91,3 +91,10 @@ export FZF_DEFAULT_OPTS='--height 40% --border' function filecurl { cat $1 | xargs -n 1 curl -LO } + +fd() { + local dir + dir=$(find ${1:-.} -path '*/\.*' -prune \ + -o -type d -print 2> /dev/null | fzf +m) && + cd "$dir" + } diff --git a/vimrc b/vimrc index 994e9bf..b7bb1d2 100644 --- a/vimrc +++ b/vimrc @@ -1,6 +1,6 @@ " Plugin installation {{{ call plug#begin('~/.vim/plugged') - Plug 'fatih/vim-go' + Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } Plug 'ervandew/supertab' Plug 'vim-syntastic/syntastic' Plug 'junegunn/fzf', { 'dir': '~/bin/fzf', 'do': './install --all --no-key-bindings' } @@ -295,10 +295,6 @@ let g:syntastic_check_on_wq = 0 let g:syntastic_javascript_checkers = ['jshint'] let g:syntastic_html_tidy_exec = 'tidy' let g:syntastic_html_tidy_ignore_errors = [ 'is not recognized', 'proprietary attribute' ] -let g:syntastic_go_checkers = ['go'] - - - " Reccommendation of when using syntastic with vimgo to prevent lag