Use $VISUAL for the e command instead of $EDITOR (#1197)
* Use $VISUAL for the `e` command instead of $EDITOR * update `os_windows.go` and `doc.go`
This commit is contained in:
1 parent
1e1486fc02
commit
28b550a7ec
5 files changed
+18
-8
No files matched your search
@@ -18,7 +18,7 @@ import (
|
||||
|
||||
var (
|
||||
envOpener = os.Getenv("OPENER")
|
||||
envEditor = os.Getenv("EDITOR")
|
||||
envEditor = os.Getenv("VISUAL")
|
||||
envPager = os.Getenv("PAGER")
|
||||
envShell = os.Getenv("SHELL")
|
||||
)
|
||||
@@ -51,7 +51,10 @@ func init() {
|
||||
}
|
||||
|
||||
if envEditor == "" {
|
||||
envEditor = "vi"
|
||||
envEditor = os.Getenv("EDITOR")
|
||||
if envEditor == "" {
|
||||
envEditor = "vi"
|
||||
}
|
||||
}
|
||||
|
||||
if envPager == "" {
|
||||
|
||||
Reference in new issue
Block a user