0

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?

4

1 回答 1

-1

好吧,伙计们,我做到了!

好吧,这取决于您要指向的位置。

这个问题的正确答案是:

alias fer='~/hej'

显然 zsh 添加了其余部分。

现在,如果您想指向更远的目录,则在 USER-account 中,它将粘贴整个链接,例如:

alias fer='~/Documents/tutorials/ruby/RnR/third_course_0/projects'
于 2013-11-20T20:25:22.263 回答