3 ms·
"cd -" changes to the previous working directory. Your function calls cd multiple times, so calling "cd -" won't bring the user to the previous working director
by makeworld 5y ago
"cd -" changes to the previous working directory. Your function calls cd multiple times, so calling "cd -" won't bring the user to the previous working directory they expect. ozym4nd145's function only calls cd once.
- sandreas 5y agoAah, now I see. Awesome, I'll try that out. Thank you.