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
@@ -62,6 +62,8 @@ func (e *SetExpr) eval(app *App, args []string) {
gOpts.tabstop = n
case "ifs":
gOpts.ifs = e.val
case "shell":
gOpts.shell = e.val
case "showinfo":
if e.val != "none" && e.val != "size" && e.val != "time" {
msg := "showinfo should either be 'none', 'size' or 'time'"