add executable completion on windows

This commit is contained in:
Gokcehan committed 2018-06-29 00:12:54 +03:00
1 parent fef99c1d70
commit e1b6d38386
3 files changed
+22 -2

No files matched your search

+4
View File
@@ -129,3 +129,7 @@ func setDefaults() {
func moveCursor(y, x int) {
fmt.Printf("\033[%d;%dH", y, x)
}
func isExecutable(f os.FileInfo) bool {
return f.Mode()&0111 != 0
}