On Linux
alias cdt='cd /usr/a'
make a alias that when I type
cdt
I change the workpath to /use/a
On PowerShell
Set-Alias cdt "cd F://a"
It seems not work
Aliases can't use parameters, so define a function instead.
function cdt { set-location "F:\a" }
To make sure this stays as a permanent alias you can do the following in powershell:
notepad $profile
and paste the following in the file (at the end):
function gotoa { set-location "F:\a" }
new-alias cdt gotoa
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With