Skip to content

Instantly share code, notes, and snippets.

@bbtdev
Created July 25, 2018 16:09
Show Gist options
  • Select an option

  • Save bbtdev/05795252ec0dc78737570d120557cc4a to your computer and use it in GitHub Desktop.

Select an option

Save bbtdev/05795252ec0dc78737570d120557cc4a to your computer and use it in GitHub Desktop.
# zshrc
export FZF_DEFAULT_OPTS="--history=$HOME/.fzf_history"
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -g ""'
# vimrc
# so I can have command history (CTRL-p/n)
let g:fzf_history_dir = '--history=$HOME/.fzf_history'
" FZF Esc collides with terminal Esc remap | So I can close with Esc
autocmd FileType fzf :tnoremap <buffer> <Esc> <C-g>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment