jbangdev / jbang

Unleash the power of Java - JBang Lets Students, Educators and Professional Developers create, edit and run self-contained source-only Java programs with unprecedented ease.
https://jbang.dev
MIT License
1.43k stars 159 forks source link

jbang app setup and completion #788

Open grumpyf0x48 opened 3 years ago

grumpyf0x48 commented 3 years ago

jbang app setup adds jbang to the PATH in .bashrc.

It would be nice to also add the definition of the completion function:

source<(jbang completion)

maxandersen commented 3 years ago

not a fan of adding a jbang call into zsh/bash every time.

maybe generate to temporarty ~/.jbang location and source that if present and if not then call it ...to avoid laggy start

grumpyf0x48 commented 3 years ago

Yes loading completion can take between 1 and 3 seconds on my machine which is not so old :-(