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が残りを追加します。

さらに遠くのディレクトリを指したい場合は、ユーザーアカウント内でリンク全体を貼り付けます。たとえば、次のようになります。

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