Skip to content

Commit 6390d07

Browse files
committed
minor changes
1 parent 5c08308 commit 6390d07

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
# git-autocomplete-for-windows
22

3-
Enable auto-completion for Git commands and branches in the Windows command prompt (cmd).
3+
A lightweight auto-completion for Git commands and branches in the Windows command prompt (cmd).
44

55
- Install [Clink](https://chrisant996.github.io/clink/) (Bash features for Windows)
66
- Copy [git-autocomplete.lua](https://github.com/ztomm/git-autocomplete-for-windows/blob/main/git-autocomplete.lua) into `C:\Users\<username>\AppData\local\clink`
77

8-
I prefer to deselect `Use enhanced default settings` when installing Clink. This causes suggestions to be displayed as a list on a double-tab.
8+
I prefer to disable the `Use enhanced default settings` when installing Clink. This causes the suggestions to be displayed as a list on a double tab. A list can also be displayed with `CTRL+SPACE`.
99

10-
`CTRL+SPACE` is quite useful with Clink.
11-
12-
Take the feature if you want some color in the CMD. The list comes then also with CTRL+SPACE.
10+
Missing commands can be added in the git-autocomplete.lua (line 1-14).

git-autocomplete.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ local function getBranchesLocal(alias)
3535
if startsWith(result, "fatal") == false then
3636
for branch in string.gmatch(result, "[* ]%s.%S+") do
3737
branch = string.gsub(branch, "^%*%s*", "")
38-
branch = string.gsub(branch, "^%s*remotes/", "")
39-
branch = string.gsub(branch, "^%s+", "")
38+
branch = string.gsub(branch, "^%s*remotes/", "")
39+
branch = string.gsub(branch, "^%s+", "")
4040
clink.argmatcher("git"):addarg(alias):addarg(branch):nofiles()
4141
clink.argmatcher("git"):addarg(alias):addarg("origin"):addarg(branch):nofiles()
4242
end

0 commit comments

Comments
 (0)