add an option to configure shell used by commands

This commit is contained in:
Gokcehan committed 2016-08-27 14:12:03 +03:00
1 parent 4dc8eccf9e
commit ce25fc55ca
6 files changed
+25 -10

No files matched your search

+2
View File
@@ -6,6 +6,7 @@ type Opts struct {
scrolloff int
tabstop int
ifs string
shell string
showinfo string
sortby string
ratios []int
@@ -21,6 +22,7 @@ func init() {
gOpts.scrolloff = 0
gOpts.tabstop = 8
gOpts.ifs = ""
gOpts.shell = envShell
gOpts.showinfo = "none"
gOpts.sortby = "name"
gOpts.ratios = []int{1, 2, 3}