Join GitHub today
$HOME link and broken promt on restore #254
First of all thank you very much. This is a very nice plugin!
Still I had a small issue, as I got an uncommon setup for my homefolder. It is a link to an NFS area, which is mounted elsewhere on the system (
I already tricked around this as follows:
But I'm sure there is a more clean and clever way to get this fixed.
I had this exact same issue when working in projects hosted on a file system outside of my
Interestingly, I could not get the desired restore behaviour by modifying the resurrect state file, I still got shells with CWD in the physical dir of the external file system (Windows drvfs on WSL) after restore.
My take was to install a
for pane in $(tmux list-panes -a|cut -d: -f1,2) do tmux send-keys -t "$pane" 'cd "$(pwd|sed -e "s:^$EXTPATH/projects:$HOME/projects:")"' "C-j" "C-l" done