Simplifying terminal navigation
Coming soon!
git clone https://github.com/gabrielg2020/goto.git
cd goto
go build -o goto ./cmd/
PATH
:mv goto /usr/local/bin/
Please make sure that these are installed.
Run the provided setup script to automate this setup:
./setup.sh
Add the following function to your .bashrc
or .zshrc
:
goto() {
dir=$(/usr/local/bin/goto "$@")
if [ -d "$dir" ]; then
echo "Changing directory to: $dir"
cd "$dir"
else
echo "No directory selected or invalid directory: $dir"
fi
}
[!NOTE] Coming soon!
goto --help