github.com/mehmetalisavas/terraform@v0.7.10/contrib/zsh-completion/install.sh (about) 1 #!/bin/bash 2 set -e 3 4 ZSH_FUNC_DIR="/usr/share/zsh/site-functions" 5 6 if [ -d "$ZSH_FUNC_DIR" ]; then 7 echo "Installing into ${ZSH_FUNC_DIR}..." 8 sudo cp ./_terraform "$ZSH_FUNC_DIR" 9 echo "Installed! Make sure that ${ZSH_FUNC_DIR} is in your \$fpath." 10 else 11 echo "Could not find ${ZSH_FUNC_DIR}. Please install manually." 12 exit 1 13 fi