-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
Sry for the noise and no stress - but after trying bat, tried bottom - and they ship now also with completion file
i.e. you need also here the "^btm$" instead the -btm.
manual download:
root@ax-proxy:~# tar xfvz bottom_x86_64-unknown-linux-gnu.tar.gz
btm
completion/
completion/btm.elv
completion/_btm
completion/btm.fish
completion/_btm.ps1
completion/btm.bash
root@ax-proxy:~# ./btm --version
bottom 0.9.6
root@ax-proxy:~# bottom
2024-07-26T03:52:10+02:00 FTL unable to execute bottom error="exec format error"
root@ax-proxy:~# head .binenv/binaries/bottom/0.9.6
_btm() {
local i cur prev opts cmd
COMPREPLY=()Hmm, that's not so good, when authors add completion files to their releases.
Maybe(?), when trying to identifying the binary and >1 match, a few options which come to my mind:
- do a file check (but
fileis not always there) - take the biggest, when >1 match?
- check for the executable flag
- Add the "^..$" everywhere
- Ignore all directories with 'complet' in them
- Ask the user when in doubt
- Prefer an exact match over any other match
Guess 7, 2 and/or 3 would elimate most of such probs, no?
Cheers, I love this tool, fastest installer of them all 💟
Metadata
Metadata
Assignees
Labels
No labels