Commit cc68b18
committed
feat(bash-completion): prevent space after profile completion
When tab completing a profile, an unwanted space is added after the
period `.`, necessitating hitting backspace before further completions
can be accessed.
The implementation here was based on the following resources:
* https://stackoverflow.com/a/66151065
- Add spaces to the end of some Bash autocomplete options,
but not to others?
* https://stackoverflow.com/a/19271994
- How can I check the last character in a string in bash?
An alternative to checking for the last character is using regex:
* https://stackoverflow.com/a/21425089
- How to check if the last string character equals '*' in Bash?.
1 parent 4181d9e commit cc68b18
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
67 | | - | |
| 72 | + | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
| |||
0 commit comments