3 ms·
A bash script won't work because it will run `cd ..` in a new process which won't affect the current shell. But, the following do work in bash: alias cd..=
by jmholla 1y ago
A bash script won't work because it will run `cd ..` in a new process which won't affect the current shell. But, the following do work in bash:
alias cd..="cd .."
or this in your `.bashrc` or some file you source in your `.bashrc`:
cd..() {
cd ..
}