Replies: 3 comments 1 reply
-
I have had a play with this on Linux because I can't use mklink to create a directory symbolic link on Windows with out admin rights. Firstly I don't know what you mean by tilde, do you mean the actual character or the value of $HOME ? Are you using it as a place holder? There are two issues at play here...
If you want to work in a different directory and then return back to the same directory I recommend using Push-Location and Pop-Location If you are in a directory and Get-Location does not give you a valid path to the directory then how did you get there? |
Beta Was this translation helpful? Give feedback.
-
Ignoring PowerShell, it is consistent with command line
Although it is a symbolic link, the current directory did become $HOME\folder And with PowerShell
And consistent with bash on Linux
|
Beta Was this translation helpful? Give feedback.
-
In answer to the original question, I hope....
|
Beta Was this translation helpful? Give feedback.
-
I would like to know how to physically switch to the full path of the target location of a symlink.
Example, I have a symlink ~\folder => C:\parent\folder
When I am at ~,
cd <option> .\folder
should physically put me inC:\\parent\folder
instead of~\folder.
This means that:pwd
should returnC:\\parent\folder
and not$HOME\folder
cd ..
should bring me toC:\\parent
and not back to ~I could not find any mention in the documentation, so idk if there is anyway to switch location like that without using the full path.
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions