And you’ll never want to miss them again!
cd without arguments
cd # brings you to your home dir, no need to do `cd ~`
cd - # goes back to the previous directory
cd ~git # goes to the homedir of the user "git"
You can set a path in this variable in your
.zshrc just like you do it with
$PATH (separate multiple dirs with
:). You can then
cd into these paths from everywhere! Even the auto-completion works properly.
5) Dot Aliases
Put these into your
.zshrc to quickly navigate through parent directories:
alias ..='cd ..' alias ...='cd ../..' alias ....='cd ../../..' alias .....='cd ../../../..'
cdargs is a little collection of tools to quickly go to your favorite dirs. On ubuntu, you can install it using:
sudo apt-get install cdargs
Then add the following to your
After that (and opening a new terminal), you can bookmark your current dir by typing:
You can jump to your bookmarked dir from everywhere by using:
cv without an argument returns a list of all bookmarks… It’s really easy, isn’t it ;)?