autoload -U add-zsh-hookload-local-conf() { # check file exists,is regular file and is readable: if [[ -f .source_me && -r .source_me ]]; then source .source_me fi}add-zsh-hook chpwd load-local-conf
这个钩子函数将在任何目录更改时运行.
FWIW,如果你想在不勾解钩子的情况下改变dirs,请使用cd -q dirname
总结以上是内存溢出为你收集整理的输入目录时在zsh中输入文件全部内容,希望文章能够帮你解决输入目录时在zsh中输入文件所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)