gittech. site

for different kinds of informations and explorations.

Batmobile: Fixing Navigation in Windows Terminal

Published at
1 day ago

batmobile

a bat script that turbocharges windows terminal navigation and replaces all needs for cd, cd.. and cd + TAB until match

Replacing cd with c

Comparison: go from current dir to domaintests

root
β”œβ”€β”€ source
β”‚   └── repos
β”‚       β”œβ”€β”€ my_foo_dir
β”‚       β”œβ”€β”€ my_bar_dir
β”‚       β”‚   β”œβ”€β”€ app
β”‚       β”‚   β”œβ”€β”€ apptests
β”‚       β”‚   β”œβ”€β”€ domain
β”‚       β”‚   └── domaintests  <--

Using the batmobile (c.bat) script: using batmobile c.bat script

Using cd: using cd

Replacing cd.. with c

Calling c without any arguments is the equivalent of calling cd..

Replacing cd + TAB on multiple matches

using the "-l" command allows for choosing a match for a search that will then be remembered until the terminal session is ended