Improve windows shell handling (#1309)

* Improve windows shell handling

* Add shell in command line

* Fix shellopts bug

* Add quote string

* Refactor `exportFiles` function

* Add defaults for Windows

* Revert "Add defaults for Windows"

Accidental commit

This reverts commit 5ff32650fe.

* Separate handling for CMD vs PowerShell

* Add case insensitive check
This commit is contained in:
Joe Lim authored and GitHub committed 2023-07-03 17:31:45 +03:00
1 parent 56ab5ccc61
commit 592e7fe4be
4 files changed
+35 -39

No files matched your search

+1 -1
View File
@@ -85,7 +85,7 @@ func exportEnvVars() {
log.Printf("getting path to lf binary: %s", err)
lfPath = "lf"
}
os.Setenv("lf", lfPath)
os.Setenv("lf", quoteString(lfPath))
}
// used by exportOpts below