|
|
@ -3,9 +3,9 @@ setlocal EnableDelayedExpansion
|
|
|
|
|
|
|
|
|
|
|
|
echo %*|>nul findstr /rx \-.*
|
|
|
|
echo %*|>nul findstr /rx \-.*
|
|
|
|
if ERRORLEVEL 1 (
|
|
|
|
if ERRORLEVEL 1 (
|
|
|
|
for /f %%i in ('python "%~dp0\autojump" %*') do set new_path=%%i
|
|
|
|
for /f "delims=" %%i in ('python "%~dp0\autojump" %*') do set new_path=%%i
|
|
|
|
if exist !new_path!\nul (
|
|
|
|
if exist !new_path!\nul (
|
|
|
|
start !new_path!
|
|
|
|
start "" "explorer" !new_path!
|
|
|
|
) else (
|
|
|
|
) else (
|
|
|
|
echo autojump: directory %* not found
|
|
|
|
echo autojump: directory %* not found
|
|
|
|
echo try `autojump --help` for more information
|
|
|
|
echo try `autojump --help` for more information
|
|
|
|