I often use
cd - to go back to where I was. How can I do this multiple times in bash? Or would zsh or some other tool support this?
In zsh, there's an
In Bash, you can alias
The one downside of this is that you will lose
If you ever have to use the actual
Here's a quick and dirty way to conveniently bookmark directories and jump back to them:
Go somewhere and type:
You now have a command called
And presto, back to that directory. I find this very useful.
I found a script that solved this issue for me. With this you can type
To go to
oh-my-zsh provides some really nice functionality for this (at least I think it's oh-my-zsh that sets this).
In practice, it works like this:
You can use the
I'm using simple function found on commandlinefu long time ago
(added in my osx .profile works like a charm)
Yes. We can make your
Rather than doing multiple
For example :
This will take you 5 directory up the level.