8
cd error with CDAPTH
source link: https://fann.im/blog/2023/11/22/cd-error-with-cdapth/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
cd error with CDAPTH
Nov 22, 2023
I’ve set $CDPATH
in zsh for quick directories switching. But this bring some issues with make
or npm run
:
/bin/sh: line 0: cd: src: No such file or directory
cd
wants to change some directory but uses $CDPATH
first to find. Add .
to $CDPATH
to fix this:
export CDPATH=.:$HOME/src
Was this page helpful?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK