0
As a context. I have a folder which I have symlinked into my $HOME
directory.
~> ls -s /var/www/to_link "$HOME/linked"
I cd
into "$HOME/linked"
So, by default, pwd
shows the current directory including symlinks. In this case, it would be /home/christopher/linked
. If I want to have it return /var/www/to_link
I have to type pwd -P
. I generally find this second form more useful than the first, but I would like both to be available.
- Is it possible to have
pwd
default to include the-P
flag, and then use another flag to include symlinks? So basically,pwd
would return/var/www/to_link
andpwd -X
(or some other flag) would return the original/home/christopher/linked
.