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が残りを追加します。
さらに遠くのディレクトリを指したい場合は、ユーザーアカウント内でリンク全体を貼り付けます。たとえば、次のようになります。
alias fer='~/Documents/tutorials/ruby/RnR/third_course_0/projects'