Skip to content

Instantly share code, notes, and snippets.

@iloveitaly
Last active February 13, 2024 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iloveitaly/357a72f0f9e70f3a7d2aa6f8c40cf956 to your computer and use it in GitHub Desktop.
Save iloveitaly/357a72f0f9e70f3a7d2aa6f8c40cf956 to your computer and use it in GitHub Desktop.
# make sure you execute this *after* asdf or other version managers are loaded
# bun completions are strange: running `bun completions` installs ~/.bun/_bun and does not output the completion source code
# this is a hack until bun fixes their completion setup https://github.com/oven-sh/bun/issues/1272
if (( $+commands[bun] )); then
[ -s ~/.bun/_bun ] || bun completions
# cannot source directly, must add fpath to completions
fpath+=~/.bun/
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment