Import initial history from fish too

This commit is contained in:
David Dworken
2022-11-03 22:32:55 -07:00
parent c5aff4085d
commit d4ca466314
3 changed files with 23 additions and 2 deletions

View File

@ -62,6 +62,7 @@ func BackupAndRestoreWithId(t *testing.T, id string) func() {
path.Join(homedir, data.HISHTORY_PATH, "config.fish"),
path.Join(homedir, ".bash_history"),
path.Join(homedir, ".zsh_history"),
path.Join(homedir, ".local/share/fish/fish_history"),
}
for _, file := range renameFiles {
touchFile(file)
@ -79,6 +80,7 @@ func BackupAndRestoreWithId(t *testing.T, id string) func() {
configureZshrc(homedir)
touchFile(path.Join(homedir, ".bash_history"))
touchFile(path.Join(homedir, ".zsh_history"))
touchFile(path.Join(homedir, ".local/share/fish/fish_history"))
return func() {
Check(t, os.MkdirAll(path.Join(homedir, data.HISHTORY_PATH), os.ModePerm))
for _, file := range renameFiles {