write history to history file on quit

Related #81
This commit is contained in:
Gokcehan committed 2018-07-12 21:22:36 +03:00
1 parent 211bcd0444
commit cdf4fcb810
4 files changed
+82 -2

No files matched your search

+2
View File
@@ -29,6 +29,7 @@ var (
gUser *user.User
gConfigPaths []string
gMarksPath string
gHistoryPath string
)
func init() {
@@ -74,6 +75,7 @@ func init() {
}
gMarksPath = filepath.Join(data, "lf", "marks")
gHistoryPath = filepath.Join(data, "lf", "history")
gDefaultSocketPath = filepath.Join(os.TempDir(), fmt.Sprintf("lf.%s.sock", gUser.Username))
}