Travel Terragrunt directory tree as a first class passenger!
cd
to the directory of your [locally cloned] Terragrunt/Terraform Git repo;- run tg alias there 🚀 ([optional] arguments are "path filter" matches);
- use arrow keys to navigate the list and
/
key to search for specific items;
It is absolutely required to use bash
(or zsh
) aliases. Start from something like this:
alias tg='_tg(){ travelgrunt -out-file ~/.tg-path ${@} && cd "$(cat ~/.tg-path)" }; _tg'
alias tt='_tt(){ travelgrunt -top -out-file ~/.tg-path && cd "$(cat ~/.tg-path)" }; _tt'
💡 tt is a "convenience alias" that brings you to the top level path of your repository.
Core feature of this program is the ability to change working directory while staying inside the current shell.
This can not be done by the program itself, because of POSIX
security limitations. Without instrumenting
the shell with aliases travelgrunt
will not work!
Install latest release binary into /usr/local/bin
(default):
curl -s -f \
https://raw.githubusercontent.com/ivanilves/travelgrunt/main/scripts/install-latest.sh | sh
Install latest release binary into /somewhere/else/bin
:
curl -s -f \
https://raw.githubusercontent.com/ivanilves/travelgrunt/main/scripts/install-latest.sh \
| PREFIX=/somewhere/else sh
make dep
- install/ensure dependencies;make build
- build thetravelgrunt
binary incmd/travelgrunt
path;make install
- [optional] install builttravelgrunt
binary under the${PREFIX}/bin
location;