Commit bd58e04
committed
Fix: Imrpove bash completion command logic
Fine-tune completion command logic:
- Remove `default` option switch in completion specification
- Complete `--file` option with directory/file paths compgen
- Complete other path related options with directory names only
- Don't attempt completion after the `--meta` option comp word1 parent 66de0da commit bd58e04
1 file changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
51 | 60 | | |
52 | 61 | | |
53 | 62 | | |
| |||
61 | 70 | | |
62 | 71 | | |
63 | 72 | | |
64 | | - | |
| 73 | + | |
0 commit comments