This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RIPGREP config (this is the environment variable that vim is reading when building the rg command) | |
# In this case the shell is zsh. Adjust accordingly based on preferred shell and needs. | |
export RG_COMMAND_BASE='rg --ignore-file ~/.ignore --hidden --follow' | |
# Minimal FZF config. Shares the RG_COMMAND_BASE env var. | |
[ -f $HOME/.fzf.zsh ] && source $HOME/.fzf.zsh | |
export FZF_DEFAULT_COMMAND="$RG_COMMAND_BASE --files" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ripgrep | |
if executable('rg') | |
let $FZF_DEFAULT_COMMAND = 'rg --files --hidden --follow --glob "!.git/*"' | |
set grepprg=rg\ --vimgrep | |
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --glob "!.git/*" --color "always" '.shellescape(<q-args>).'| tr -d "\017"', 1, <bang>0) | |
" Overriding fzf.vim's default :Files command. | |
" Pass zero or one args to Files command (which are then passed to Fzf_dev). Support file path completion too. | |
command! -nargs=? -complete=file Files call Fzf_dev(<q-args>) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ -z $2 ]; then | |
PORT=8000 | |
else | |
PORT=$2 | |
fi | |
PIDFILE=/tmp/mini-httpd.pid |