github.com/spirius/terraform@v0.10.0-beta2.0.20170714185654-87b2c0cf8fea/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