3 ms·
For a one-level undo there's always cd - Passing a single dash as a parameter to cd takes you back to $OLDPWD and each invocation of cd sets OLDPWD to the d
by anon4 13y ago
For a one-level undo there's always
cd -
Passing a single dash as a parameter to cd takes you back to $OLDPWD and each invocation of cd sets OLDPWD to the directory you were in.