Skip to content

Instantly share code, notes, and snippets.

% git clone https://github.com/zsh-users/zsh-completions ~/.oh-my-zsh/custom/plugins/zsh-completions && \
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions && \
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
plugins=(... zsh-completions ...)
echo "autoload -U compinit && compinit" >> ~/.zshrc
git clone https://github.com/jarun/googler/
cd ./googler
sudo make install
cp ./googler/auto-completion/zsh/_googler ~/.oh-my-zsh/custom/plugins/zsh-completions/src && source ~/.zshrc
@dmidlo
dmidlo / _googler
Created March 27, 2017 00:15
Googler Zsh Completions
#compdef googler
#
# Completion definition for googler.
#
# Author:
# Zhiming Wang
#
setopt localoptions noshwordsplit noksharrays
local -a args
args=(
plugins=(... zsh-autosuggestions ...)
bindkey '^ ' autosuggest-accept
plugins=(... zsh-syntax-highlighting)