Permalink
Switch branches/tags
Nothing to show
Find file
35f648b Aug 9, 2017
45 lines (26 sloc) 876 Bytes
#!/usr/bin/env bash
# `.external` handles all external tools.
#
# This file is used as a part of `.shell_env`
# === Autocomplete ===
# npm:
source <(npm completion) # adds normal autocomplete to `npm` commands
# === Syntax highlight ===
source "/usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
# === fzf ===
if [[ ! "$PATH" == */usr/local/opt/fzf/bin* ]]; then
export PATH="$PATH:/usr/local/opt/fzf/bin"
fi
# Auto-completion
[[ $- == *i* ]] && source "/usr/local/opt/fzf/shell/completion.zsh" 2> /dev/null
# Key bindings
source "/usr/local/opt/fzf/shell/key-bindings.zsh"
# Setting ag as the default source for fzf
export FZF_DEFAULT_COMMAND='ag -g ""'
# To apply the command to CTRL-T as well
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
_fzf_compgen_path() {
ag -g "" "$1"
}
# === z ===
source "/usr/local/etc/profile.d/z.sh"