I edited my .bashrc to add more directories to $CDPATH. It looks like this:
export CDPATH=".:~:~/LEI/2_ano/2_smt:~/LEI/2_ano/1_smt"
But now every time I use the cd command, it prints the absolute path. For example, if I do cd ~/Downloads
, the result is
/home/user_name/Downloads
User_prompt:~/Downloads$
I don't think you can stop it from printing, since that's the documented behavior:
However you could overload
cd
with a shell function that redirects standard output: