alias cloud='cd ~/Users/diddy/Library/Mobile\ Documents/com~apple~CloudDocs'
I thought it was related to the escape character but it's not. I get the "No such file or directory" error.
alias cloud='cd ~/Users/diddy/Library/Mobile\ Documents/com~apple~CloudDocs'
I thought it was related to the escape character but it's not. I get the "No such file or directory" error.
Top comments (6)
The fact that it's on two lines seems to be the problem. You can use quoting for directories with spaces:
BTW make sure that the directory actually exists :)
alias cloud='cd ~/Users/diddy/Library/"Mobile Documents"/com~apple~CloudDocs'
Still giving me the error message :-(
I got it, it's:
You have to remove the
~at the beginning, that's an alias for/Users/diddyalreadyor you can do
Perfect, used alias cloud='cd ~/Library/"Mobile Documents"/com~apple~CloudDocs' and it finally worked.
Thank you š¤
Try replacing
~with$HOME.Sorry for the typos.