use conditional compilation for windows

This commit is contained in:
Gokcehan committed 2017-08-05 19:23:55 +03:00
1 parent eb2710c888
commit 458bc71688
7 files changed
+122 -93

No files matched your search

+2 -9
View File
@@ -1,9 +1,6 @@
package main
import (
"runtime"
"time"
)
import "time"
var gOpts struct {
dircounts bool
@@ -43,11 +40,7 @@ func init() {
gOpts.scrolloff = 0
gOpts.tabstop = 8
gOpts.filesep = ":"
if runtime.GOOS == "windows" {
gOpts.shell = "cmd"
} else {
gOpts.shell = "/bin/sh"
}
gOpts.shell = gDefaultShell
gOpts.sortby = "natural"
gOpts.timefmt = time.ANSIC
gOpts.ratios = []int{1, 2, 3}