Skip to content

Commit

Permalink
Add completions to init
Browse files Browse the repository at this point in the history
  • Loading branch information
kylef committed Dec 24, 2015
1 parent 4dbca33 commit 1fe9dc7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libexec/swiftenv-init
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
#!/usr/bin/env bash
# completes

set -e

if [ "$1" = "--complete" ]; then
echo "-"
echo "--no-rehash"
echo "--rehash"
echo "bash"
echo "zsh"
echo "fish"
exit
fi

print=""

if [ -r "$SWIFTENV_ROOT/shims" ]; then
Expand Down

0 comments on commit 1fe9dc7

Please sign in to comment.