Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I'm trying to make this in my .zshrc-file:
alias fer='/Documents/hej'
But I'm getting this when I run the alias
cd:cd:13: no such file or directory: /Users/yoniPacheko/Documents/hej
it seems like syntax is wrong right?
好吧,伙计们,我做到了!
好吧,这取决于您要指向的位置。
这个问题的正确答案是:
alias fer='~/hej'
显然 zsh 添加了其余部分。
现在,如果您想指向更远的目录,则在 USER-account 中,它将粘贴整个链接,例如:
alias fer='~/Documents/tutorials/ruby/RnR/third_course_0/projects'