Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate bash completions into bun completions #671

Closed
evanwashere opened this issue Jul 13, 2022 · 8 comments
Closed

Integrate bash completions into bun completions #671

evanwashere opened this issue Jul 13, 2022 · 8 comments

Comments

@evanwashere
Copy link
Collaborator

@evanwashere I think the file I need to edit for installing bash completions is install_completions_command.zig

cc: @Jarred-Sumner

Originally posted by @zombieleet in #403 (comment)

@zombieleet
Copy link
Contributor

zombieleet commented Jul 13, 2022

I am currently making the necessary changes to the file

@zombieleet
Copy link
Contributor

zombieleet commented Jul 17, 2022

@evanwashere The zig part has been implemented 😃

@max-programming
Copy link

For some reason even after running bun completions it's not working for me

@zombieleet
Copy link
Contributor

@max-programming what issue are you facing with this?

@max-programming
Copy link

Sorry @zombieleet I uninstalled Linux now.
Basically, even after running bun completions, the completions didn't work for me

@bluet
Copy link

bluet commented Dec 28, 2022

I'm experiencing the same issue.

$ curl -fsSL https://bun.sh/install | bash
##O#-#                                                                        
######################################################################## 100.0%
bun was installed successfully to ~/.bun/bin/bun 

Added "~/.bun/bin" to $PATH in "~/.bashrc" 

To get started, run: 

 source /home/bluet/.bashrc 
  bun --help 
$ source /home/bluet/.bashrc
$ bun --version
0.4.0
$ echo $SHELL
/bin/bash
$ bun completions
error: Could not find a directory to install completions in.
Please either pipe it:
   bun completions > /to/a/file

 Or pass a directory:

   bun completions /my/completions/dir
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.1 LTS
Release:	22.04
Codename:	jammy

@mnpenner
Copy link

mnpenner commented Aug 24, 2023

You can trick it with SHELL=bash bun completions /usr/share/bash-completion/completions or SHELL=bash bun completions > /usr/share/bash-completion/completions/bun but I still don't get completions.

@adriangalilea
Copy link

I would like to opt-out on the .zshrc modification, I already have the completions elsewhere and when I install bun it adds it regardless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants