mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-12 10:47:05 +02:00
Store cwd in history
This commit is contained in:
@@ -120,7 +120,8 @@ func exec_command(rl *readline.Readline, cmdline string) bool {
|
||||
if len(parsed_cmdline) == 0 {
|
||||
return true
|
||||
}
|
||||
hi := readline.HistoryItem{Timestamp: time.Now(), Cmd: cmdline, ExitCode: -1}
|
||||
cwd, _ := os.Getwd()
|
||||
hi := readline.HistoryItem{Timestamp: time.Now(), Cmd: cmdline, ExitCode: -1, Cwd: cwd}
|
||||
switch parsed_cmdline[0] {
|
||||
case "exit":
|
||||
hi.ExitCode = 0
|
||||
|
||||
Reference in New Issue
Block a user