tmux-resurrect icon indicating copy to clipboard operation
tmux-resurrect copied to clipboard

Resurrect can not save and restore fish shell history

Open ghost opened this issue 7 years ago • 5 comments
trafficstars

The save code is probably this: https://github.com/tmux-plugins/tmux-resurrect/blob/master/scripts/save.sh#L145 The restore code: https://github.com/tmux-plugins/tmux-resurrect/blob/master/scripts/restore.sh#L273

Presumably there just needs to be a branch with the appropriate fish shell history commands.

ghost avatar Nov 25 '17 23:11 ghost

Can anyone confirm if this is the correct approach to fixing? (are there any nuances to pay attention to?)

ghost avatar Feb 04 '18 18:02 ghost

Experiencing the same problem with fish, I'm interested in getting this feature working 😄

Starefossen avatar Feb 19 '18 20:02 Starefossen

I'm moderately sure fish would need to work on it's history command for a good solution to this (see the reference above).

ghost avatar Feb 19 '18 21:02 ghost

Anyone had any success in making Fish work with tmux-resurrect? I get my panes restored, but the path in panes all defaults to ~. Is this something I could fix with configuration?

hristod avatar Aug 05 '24 08:08 hristod

Edited: I thought what I want was restoring fish shell history, but actually it's NOT. What I want is actually restoring pane contents (scrollback history). This feature is already supported and set -g @resurrect-capture-pane-contents 'on' is working very well. I am very sorry about the confusion and previous comment.

sgon00 avatar Dec 29 '24 18:12 sgon00