Hacker News new | ask | show | jobs
by ataylor32 3028 days ago
Random piece of info about cd:

cd.. (no space between "cd" and "..") works on Windows

3 comments

Or try zsh with a good pre-made config like grmlzshrc[1]. It allows changing to a directory by typing only its name (or path). This includes the .. directory. Doesn't get faster.

[1] https://grml.org/zsh/

Or use Autojump[1], changed my life

1. https://github.com/wting/autojump

This is like the zsh plugin 'z'
bash: `shopt -s autocd`
It's been like that since the DOS days, IIRC.

You can simulate that behavior on bash with an alias such as this one:

  alias cd..="cd .."
I believe that you also don't need the space when you specify a path:

    cd\foo\x
The cmd parser in Windows is the most bizarre piece of software in common use. I don't believe there is a single person that actually understands how it works completely.
I think that Rex Conn and I could give it a fair go. (-:
cool
My base bashrc has this and cd-, just to handle typos
Starting in Windows 95, you could stack periods to go back further than one directory. "cd....." instead of "cd ..\..\..\.."