Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"targeting" seems like an odd thing to say there. This is an interactive shell command. Does the shell you are using interactively support it seems like a more interesting concern? We don't have to be portable typing commands into a shell. :-)

Never seen {push,pop}d in a shell script.



GP was specifically talking about scripts, and I see the utility.

As an interactive feature, I use the "autopushd" option in zsh, which make all "cd" behave like pushd, and you can also use "cd -n" where "n" is the number of levels you want to go up the stack (so "cd -" is equivalent to "cd -1")


oh wow. How did I not see that? Sorry!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: