Skip to content

Instantly share code, notes, and snippets.

View dmidlo's full-sized avatar

David Midlo dmidlo

View GitHub Profile
bindkey '^ ' autosuggest-accept
plugins=(... zsh-autosuggestions ...)
@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=(
cp ./googler/auto-completion/zsh/_googler ~/.oh-my-zsh/custom/plugins/zsh-completions/src && source ~/.zshrc
cd ./googler
sudo make install
git clone https://github.com/jarun/googler/
echo "autoload -U compinit && compinit" >> ~/.zshrc
plugins=(... zsh-completions ...)
% 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
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(boot2docker codeclimate colored-man-pages colorize command-not-found common-aliases cp django docker docker-compose ember-cli fabric gem git git-extras git-prompt git-remote-branch github gnu-utils macports man nmap node npm nvm osx pip pylint python ruby rvm spring sublime sudo systemd taskwarrior urltools vagrant virtualenv web-search xcode zsh-autosuggestions zsh-completions zsh-navigation-tools zsh_reload zsh-syntax-highlighting history-substring-search)