From ceb1f2d15a6930a82db56fc3d57a6c6d9de24980 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Thu, 15 Sep 2016 14:27:14 +0300 Subject: [PATCH] expand ~ to HOME in previewer option Mentioned in #5. --- eval.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eval.go b/eval.go index b77852e..e352b56 100644 --- a/eval.go +++ b/eval.go @@ -62,7 +62,7 @@ func (e *SetExpr) eval(app *App, args []string) { case "ifs": gOpts.ifs = e.val case "previewer": - gOpts.previewer = e.val + gOpts.previewer = strings.Replace(e.val, "~", envHome, -1) case "shell": gOpts.shell = e.val case "showinfo":