Shell completion #5
Labels
No Label
breaking-change
bug
CI/CD
design
documentation
duplicate
enhancement
help wanted
invalid
plugin
question
secrets
shell-completion
versioning
wontfix
No Milestone
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/abra#5
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Maybe overkill depending on how long we think this janky Bash implementation is gonna exist for, but it'd be nice to have completion of commands and their arguments.
Apparently
zsh
can also handle, I tried:This seems to be some sort of incompatibility with versions.
I re-added some copypasta from homeshick which claims to handle missing
compopt
, that work any better?Thanks! Still same issue... I guess some further digging is required for Zsh.
Feel free to close this one off on your side for Bash, looks legit :)
Ugh embarrassing copypasta error, forgot to
s/HOMESHICK/ABRA
in one place. Any joy now? If still no I might installzsh
under protest.Oh! But no... haha, sorry!
I tried https://stackoverflow.com/questions/53975551/how-to-load-zsh-mapfile-in-zsh but then I also saw:
Guess those are Bash only functions or!? Pretty lost with this stuff...
Lol, ok, using
abra
more and more (it is awesome) but I can now say that it is maybe not so RSI friendly hehe, many typingz of domain required! Maybeabra app deploy
and then selection screen will be good too. Will come back to this...Yeah I had the same hand-health concerns 😬 Both
mapfile
andshopt
are Bash hacks to load things into arrays, I guesszsh
has better ones, and writing a separate version of the script might be easier than making the Bash one cross-compatible. I'll give it a go unless you get there first.Works for Zsh now too 🖤