문제

I am new to zsh and I just wanted to reload .zshrc after some modifications. I am in my home directory and when I type . .zshrc I get the following output .: no such file or directory: .zshrc. It appears that . ~/.zshrc works. Is there a way to be able to provide a local path to that kind of command ?

도움이 되었습니까?

해결책

You can use source instead of . for that.

From zshbuiltins(1):

source file [ arg ... ]
Same as `.', except that the current directory is always searched and is always searched first, before directories in $path.

다른 팁

The current directory is not in your PATH, either provide a relative or absolute path to .zshrc or add . or $HOME at the end of your PATH. Beware having . in the PATH is not a recommended practice.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top