github.com/hobbeswalsh/terraform@v0.3.7-0.20150619183303-ad17cf55a0fa/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