tmux-resurrect
tmux-resurrect copied to clipboard
Restores wrong PWD when it's a symbolic link
If the current directory of a shell is a symbolic link to the real directory, the shell prompt, $ pwd, and $ echo $PWD all show the path to the symbolic link. If I type prefix + Ctrl-s, close the shell and thus the tmux window, and type prefix + Ctrl-r, then the shell prompt, $ pwd, and $ echo $PWD now show the path to the target of that symlink. It would be nice if it preserved the same path on restore instead.
Versions:
$ tmux -V
tmux 3.2a
$ (cd ~/.tmux/plugins/tmux-resurrect/ && git log -n 1)
commit cff343cf9e81983d3da0c8562b01616f12e8d548 (HEAD -> master, origin/master, origin/HEAD)
Merge: 6df0405 4c1c0dc
Author: Bruno Sutic <[email protected]>
Date: Mon Mar 6 02:20:22 2023
Merge pull request #474 from georgeanderson/master
Update description of default session location
Bit of a nitpick, I know. Not that you need my permission but feel free to close as Won't fix, I just wanted to capture this behavior somewhere. If someone ends up tacking a fix for this, LMK if I can help.