zsh: add completions for more commands with zsh-completions

master
Guillaume DOTT 2013-08-22 18:01:20 +02:00
parent 0d1f76ea0c
commit 3716b55145
1 changed files with 9 additions and 5 deletions

View File

@ -1,11 +1,6 @@
#!/bin/zsh #!/bin/zsh
autoload -U colors && colors autoload -U colors && colors
autoload -Uz compinit && compinit
autoload -U bashcompinit
bashcompinit
autoload -Uz vcs_info autoload -Uz vcs_info
autoload -z edit-command-line autoload -z edit-command-line
@ -14,6 +9,14 @@ zle -N edit-command-line
#-----------------# #-----------------#
# Auto-completion # # 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' zstyle :compinstall filename '/home/gdott9/.zshrc'
# Display a message when no match # 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-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 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 reload="pkill -u `id -u` --signal USR1 zsh"
alias be='bundle exec'
alias -s pdf=zathura alias -s pdf=zathura
alias -s ps=gv alias -s ps=gv