In my powershell profile, I set the line to my C: drive: set-location c:\
. However, I used to use my path variable github
to jump to my github folder. This worked on command line, and my other non cd commands work on Powershell, just not this one.
:: move from user space to github folder
@echo off
cd users
cd giaco
cd documents
cd github
It simply ignores the command:
However, when I use another command:
It works fine.
How can I fix this?
Thanks
cd /d "C:\users\giaco\documents\github"
if the current location isn't where you expect it, all your relative cd commands don't work. – LotPings Mar 29 '19 at 16:35Set-Location "C:\users\giaco\documents\github"
in powershell? – LotPings Mar 29 '19 at 16:46