mcfly
mcfly copied to clipboard
Treat original and symlinked folder the same way
Use case:
- the
/homefolder is a symlink to a/mnt/UserData/homefolder (mounted from another disk) - sometimes I access the folder doing
cd /home/usernameand sometimes doingcd /mnt/UserData/home/username - mcfly is seeing them as 2 different folders and keeping separate command histories for both
Suggestion:
This is good in general, but in case of symlinks I suggest tracking history based on a path where symlink resolves into.
Seems reasonable, but might be hard in practice. Happy to accept PRs around this.
Ah, maybe I've overcomplicated things. What I was actually doing:
- accessing the VM via OS's SSH Client > going to the
/home/username/folderfolder > executing my commands; - accessing the VM via PhpStorm's SSH Client, which was automatically going to the
/mnt/UserData/home/username/folderfolder automatically > executing my commands.
Now I've found the way how to teach PhpStorm to automatically go to the /home/username/folder folder and McFly is picking up the correct history automatically. So for me this isn't a problem anymore.
If you'd like, you can close this ticket now. If somebody has the same problem, then they could use that solution as well.