I find myself wanting to type ..
instead of cd ..
a lot, so I created an alias for it in one my of my shells. It works as expected, and it doesn't seem to break basic cd
and ls
usage.
Is doing this a bad idea?
I find myself wanting to type ..
instead of cd ..
a lot, so I created an alias for it in one my of my shells. It works as expected, and it doesn't seem to break basic cd
and ls
usage.
Is doing this a bad idea?
It won't break anything, but aliasing something as basic as cd ..
might lead to bad habits. Really, you're better off training your fingers to do the right thing.
Also, what happens when you move to a new system, or get a new job, or need to maintain 1000 systems. You'll need to alias ..
again, which can be a pain.
Many of us have done that in the past with other aliases, and learned that this was a bad idea, sometimes through a harsh experience.
Is doing this a bad idea?
Yes