chriswalz / bit

Bit is a modern Git CLI
Apache License 2.0
6.05k stars 106 forks source link

Auto completion on zsh does not seem to work (Docker) #109

Closed qdm12 closed 3 years ago

qdm12 commented 3 years ago

Describe the bug: Auto completion does not seem to work when pressing tab

To Reproduce Steps to reproduce the behavior:

docker run -it --rm alpine:3.13
# Install zsh
apk add zsh
touch ~/.zshrc
# Install bit
wget -qO- https://gobinaries.com/chriswalz/bit | sh
bit complete
< Press enter >
bit st
< Press tab >

Expected behavior

Complete bit st to bit status

Desktop (please complete the following information):

🙏 forgive me if I'm missing something completely obvious! ❓ Also for feature request, can I open an issue or a pull request? Thinking of adding a -y flag to bit complete to auto-accept the installation for automated setups. Thanks!

qdm12 commented 3 years ago

Working by adding source ~/.zshrc sorry about that! Should bit complete perhaps also source the file it installed its completions in to avoid this issue in the future? 🤔

chriswalz commented 3 years ago

Perhaps it should :). Yes feel free to make a PR

qdm12 commented 3 years ago

Great thanks!

Actually you can use echo "y" | bit complete to make it install completions without assistance, but I'll try to do a PR to add a flag to that command 😉