Add zsh-comp-deploy script to deploy completion functions on a site
[zfbsd.git] / zsh-comp-deploy
blob08a7b28bbede717a41f06774ccada8621703b22c
1 #!/usr/bin/env zsh
3 # get some zsh envrionnement installation on FreeBSD
4 ZSH_CMD=`which zsh`
5 ZSH_VERSION=`${ZSH_CMD} --version | sed -n 's/zsh \(.*\) .*/\1/p'`
6 ZSH_PREFIX=`make -C /usr/ports/shells/zsh -V PREFIX`
8 # add completions files in completion directory
9 for file ( _* ) sudo cp $file ${ZSH_PREFIX}/share/zsh/${ZSH_VERSION}/functions/Completion/BSD/
11 # update completion files
12 autoload -Uz compinit
13 compinit