diff --git a/bin/install_tool b/bin/install_tool index 529e02f..900cdce 100755 --- a/bin/install_tool +++ b/bin/install_tool @@ -340,6 +340,12 @@ EOF chmod +x ${DESTDIR}/tmpmail add_bin_symlink tmpmail ;; + gf) + install_pkgs golang-go silversearcher-ag + go get -u github.com/tomnomnom/gf + mkdir -p ${HOME}/.config + git clone https://github.com/Matir/gf-patterns.git ${HOME}/.config/gf + ;; *) echo "Unknown tool: ${TOOL}" >/dev/stderr echo "Options:" >/dev/stderr diff --git a/dotfiles/zshrc.completions/_gf b/dotfiles/zshrc.completions/_gf new file mode 100644 index 0000000..2b24c6c --- /dev/null +++ b/dotfiles/zshrc.completions/_gf @@ -0,0 +1,5 @@ +#compdef gf + +function _gf { + _arguments "1: :($(gf -list))" +}