Skip to content

Commit

Permalink
Add fzf
Browse files Browse the repository at this point in the history
  • Loading branch information
ericboehs committed Jul 16, 2015
1 parent ec311ae commit 6191260
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .fzf
Submodule .fzf added at b0f491
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vim/bundle
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule ".vim/bundle/Vundle.vim"]
path = .vim/bundle/Vundle.vim
url = https://github.com/gmarik/Vundle.vim.git
[submodule ".fzf"]
path = .fzf
url = https://github.com/junegunn/fzf.git
20 changes: 20 additions & 0 deletions .zsh/fzf.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Setup fzf
# ---------
if [[ ! "$PATH" =~ "$HOME/.fzf/bin" ]]; then
export PATH="$PATH:$HOME/.fzf/bin"
fi

# Man path
# --------
if [[ ! "$MANPATH" =~ "$HOME/.fzf/man" && -d "$HOME/.fzf/man" ]]; then
export MANPATH="$MANPATH:$HOME/.fzf/man"
fi

# Auto-completion
# ---------------
[[ $- =~ i ]] && source "$HOME/.fzf/shell/completion.zsh" 2> /dev/null

# Key bindings
# ------------
source "$HOME/.fzf/shell/key-bindings.zsh"

4 changes: 4 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Add pure prompt. https://github.com/sindresorhus/pure
fpath=( "$HOME/.zsh/functions" $fpath )
autoload -U promptinit && promptinit
prompt pure
Expand All @@ -18,3 +19,6 @@ source "$HOME/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"

# Add aliases and abbreviations
source "$HOME/.zsh/abbreviations.zsh"

# Add fzf.zsh. https://github.com/junegunn/fzf
source "$HOME/.zsh/fzf.zsh"
2 changes: 2 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ for f in `ls -a`; do
fi
done

yes | ~/.fzf/install > /dev/null

vim -c ':BundleInstall!' -c ':q!' -c ':q!'

popd > /dev/null
Expand Down

0 comments on commit 6191260

Please sign in to comment.