From 3716b55145b9f0ae2bd7d52a6b73f7e3afa9d1d6 Mon Sep 17 00:00:00 2001 From: Guillaume DOTT Date: Thu, 22 Aug 2013 18:01:20 +0200 Subject: [PATCH] zsh: add completions for more commands with zsh-completions --- zsh/zshrc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/zsh/zshrc b/zsh/zshrc index 375a7f9..412f54a 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -1,11 +1,6 @@ #!/bin/zsh autoload -U colors && colors -autoload -Uz compinit && compinit - -autoload -U bashcompinit -bashcompinit - autoload -Uz vcs_info autoload -z edit-command-line @@ -14,6 +9,14 @@ zle -N edit-command-line #-----------------# # Auto-completion # #-----------------# +# https://github.com/zsh-users/zsh-completions +[ -d "$HOME/.zsh/zsh-completions/src" ] && fpath=($HOME/.zsh/zsh-completions/src $fpath) + +autoload -Uz compinit && compinit + +autoload -U bashcompinit +bashcompinit + zstyle :compinstall filename '/home/gdott9/.zshrc' # Display a message when no match @@ -162,6 +165,7 @@ alias poweroff='sudo poweroff' alias xephyr-dualscreen='Xephyr -ac -br -noreset -screen 800x600 -screen 800x600 :1& sleep 3; DISPLAY=:1; setxkbmap fr bepo' alias xephyr-onescreen='Xephyr -ac -br -noreset -screen 800x600 :1& sleep 3; DISPLAY=:1; setxkbmap fr bepo' alias reload="pkill -u `id -u` --signal USR1 zsh" +alias be='bundle exec' alias -s pdf=zathura alias -s ps=gv