Dirfirst option and numerical sorting (#27)

* Create option dirfirst, and add numerical sorting

* Add only dirfirst option
This commit is contained in:
Ivan Menshykov authored and gokcehan committed 2016-10-18 23:17:27 +03:00
1 parent d36e272272
commit 2345e16794
6 files changed
+20 -2

No files matched your search

+2
View File
@@ -10,6 +10,7 @@ var gOpts struct {
shell string
showinfo string
sortby string
dirfirst bool
ratios []int
keys map[string]Expr
cmds map[string]Expr
@@ -23,6 +24,7 @@ func init() {
gOpts.shell = envShell
gOpts.showinfo = "none"
gOpts.sortby = "name"
gOpts.dirfirst = true
gOpts.ratios = []int{1, 2, 3}
gOpts.keys = make(map[string]Expr)