Is there a way to tell
screen not to dereference symlinks when one is passed to the
.screenrc I have commands like this:
chdir /data/project1 screen -t "project1" chdir /data/project2 screen -t "project2"
The idea being that when I launch
screen, I get a few terminals preloaded in a bunch of common directories I use frequently.
Unfortunately everything in
/data is a symlink on my system, so when I load
screen with the above commands, the terminals are left in different directories, like
/mnt/remote/server1/long/path/to/project1 instead of
/data/project1. I have to type
cd /data/project1 in the terminal to get into the folder I want.
Since the paths I'm using are very long and can change, I prefer getting in the habit of using my
/data shortcuts so that I don't have to change any habits if I relocate the files elsewhere.
Is there some way to tell
screen that, when using
chdir and the target is a symlink, not to dereference the symlink and to just change into that directory anyway?