Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
#!/usr/bin/env bash
# `.external` handles all external tools.
#
# This file is used as a part of `.shell_env`
# === Autocomplete ===
source <(npm completion) # adds normal autocomplete to `npm` commands
eval "$(gh completion -s zsh)" # adds autocomplete for `gh` tool
# === fzf ===
# https://github.com/junegunn/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 ===
# https://github.com/rupa/z
source "/usr/local/etc/profile.d/z.sh"