Snippet: Go to Root of the Git Repo

Snippet for Zsh to add alias that goes to the root dir of the git repository

echo "alias tt='cd \"./\$(git rev-parse --show-cdup)\"'"  >> ~/.zshrc 

Usage: type tt in terminal.

Author

I plan to write more articles about common laravel components. If you are interested let’s stay in touch.
comments powered by Disqus