ls
// a b c
So,with pushd,i want to add 'b' to the directory stack index ,but not enter directory b, is there any easy way to do this?
ls
// a b c
So,with pushd,i want to add 'b' to the directory stack index ,but not enter directory b, is there any easy way to do this?
Use the
-nparameter ofpushd:-nwill cause directorysomedirto be added to the stack, while suppressing the normal change of directory.You can see the documentation for
pushdwith:Then search for
pushdby issuing (multiple times):