mirror of https://github.com/wting/autojump
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
338 B
15 lines
338 B
11 years ago
|
@echo off
|
||
|
|
||
|
echo %*|>nul findstr /rx \-.*
|
||
|
if ERRORLEVEL 1 (
|
||
|
for /f %%G in ('python %~dp0\autojump %*') do set new_path=%%G
|
||
|
if exist %new_path%/nul (
|
||
|
start %new_path%
|
||
|
) else (
|
||
|
echo autojump: directory %* not found
|
||
|
echo try `autojump --help` for more information
|
||
|
)
|
||
|
echo %new_path%
|
||
|
) else (
|
||
|
python %~dp0\autojump %*
|
||
|
)
|