Skip to content

Commit

Permalink
Put zsh completions in correct place in homebrew bottle, fixes #2317 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Jun 23, 2020
1 parent 0c5a034 commit 7c866fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .circleci/bump_homebrew.sh
Expand Up @@ -60,6 +60,7 @@ class Ddev < Formula
end
bash_completion.install ".gotmp/bin/ddev_bash_completion.sh" => "ddev"
zsh_completion.install ".gotmp/bin/ddev_zsh_completion.sh" => "ddev"
fish_completion.install ".gotmp/bin/ddev_fish_completion.sh" => "ddev"
end
test do
Expand Down
5 changes: 3 additions & 2 deletions .circleci/generate_artifacts.sh
Expand Up @@ -85,9 +85,10 @@ for os in sierra x86_64_linux ; do
NO_V_VERSION=${VERSION#v}
rm -rf /tmp/bottle
BOTTLE_BASE=/tmp/bottle/ddev/$NO_V_VERSION
mkdir -p $BOTTLE_BASE/{bin,etc/bash_completion.d,share/zsh-completions}
mkdir -p $BOTTLE_BASE/{bin,etc/bash_completion.d,share/zsh/site-functions,share/fish/vendor_completions.d}
cp $BASE_DIR/.gotmp/bin/ddev_bash_completion.sh $BOTTLE_BASE/etc/bash_completion.d/ddev
cp $BASE_DIR/.gotmp/bin/ddev_zsh_completion.sh $BOTTLE_BASE/share/zsh-completions/_ddev
cp $BASE_DIR/.gotmp/bin/ddev_zsh_completion.sh $BOTTLE_BASE/share/zsh/site-functions/_ddev
cp $BASE_DIR/.gotmp/bin/ddev_fish_completion.sh $BOTTLE_BASE/share/fish/vendor_completions.d/ddev.fish

if [ "${os}" = "sierra" ]; then cp $BASE_DIR/.gotmp/bin/darwin_amd64/ddev $BOTTLE_BASE/bin ; fi
if [ "${os}" = "x86_64_linux" ]; then cp $BASE_DIR/.gotmp/bin/ddev $BOTTLE_BASE/bin ; fi
Expand Down

0 comments on commit 7c866fa

Please sign in to comment.