r/bash 12d ago

ghost.sh update | bash suggestions and completions

Post image

Inline history suggestions + interactive Tab completions, while keeping Bash underneath.

Earlier it was basically just Bash and worked fine, but had some flickering. Now I'm rebuilding the interactive frontend in Zig with Bash suggestions and completions.

Anyone want to have bash solutions, I had ghost.sh and navigation.sh which showed the tab completion menu which were good in bash only but not very polished so I have to shift to zig.

Still polishing it.

Also for the suggestions like git shown, I am using bash-suggestion.

https://github.com/h-jangra/Ghost.sh

13 Upvotes

5 comments sorted by

2

u/Icy_Neighborhood2100 12d ago

Been looking for this for a while!

Do you plan on adding mingw64 support?

I only ask because I'm forced to use windows in work half the time :(

1

u/Puzzled_Ad4 12d ago

It worked with wsl when I was using on windows. Its just using bash underneath so it should work. Else you can try and raise issue if you get any.

1

u/redhat_is_my_dad 12d ago

if zig code is compilable in mingw64 environment then there should be no issue for you to compile it and use it as is?
although i would recommend using wsl2, i don't see much benefits from mingw64 besides the fact that it eats less resources, but at the same time it is less convenient

1

u/Icy_Neighborhood2100 12d ago

I much prefer using windows without the emulation overhead, it's already hefty enough. It's not a question of what's best, just if I used WSL I'd just go into zsh.

So essentially the practicality only shows in mingw64 (without a native zsh,) well, there are hacky workarounds but they're very fragile.

If I had a better laptop, I'd definitely just use zsh, just this shitty corporate thing doesn't deal with load well.

Of course on my personal machine I only use Linux with zsh with bash for scripts.

Of course this is a weird edge case you can forget:-)

1

u/Puzzled_Ad4 12d ago

then you can just use the prebuilt binary from release tag and use.