You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wandering if you would consider a PR or making a few modification to add windows support. Actually, it almost support compilation on windows right off the bat. The only thing preventing it is a unix syscall in segment-readonly.go.
constW_USR=0002// Check user's permissions on directory in a portable but probably slower wayfileInfo, _:=os.Stat(cwd)
iffileInfo.Mode()&W_USR!=W_USR {
p.appendSegment("perms", segment{
content: fmt.Sprintf(" %s ", p.symbolTemplates.Lock),
foreground: p.theme.ReadonlyFg,
background: p.theme.ReadonlyBg,
})
}
and it seems to work just fine (at least if you're using git-bash).
I made the change by adding a specific implementation for windows so I'm sure it doesn't break anything for Unix users. But it's not really necessary, what's your thought about that ?
It is not thoroughly tested but I don't mind testing some more and submit a PR ;-)
Hi,
First of all, great work 👍
I was wandering if you would consider a PR or making a few modification to add windows support. Actually, it almost support compilation on windows right off the bat. The only thing preventing it is a unix syscall in
segment-readonly.go
.So I made the modification
and it seems to work just fine (at least if you're using git-bash).
I made the change by adding a specific implementation for windows so I'm sure it doesn't break anything for Unix users. But it's not really necessary, what's your thought about that ?
It is not thoroughly tested but I don't mind testing some more and submit a PR ;-)
More details
The text was updated successfully, but these errors were encountered: