Introduction to the scene
Use Cygwin under Windows, use Apktool to repackage apk;
Way One
CD D:
CD path/to/apk/in/d
Apktool D name.apk
Way Two
Drag the file into the Cygwin window to delete the trailing file name
CTRL + A
CD SPACE
Apktool D name.apk
Mode three
`I`
Drag a file into the Cygwin window
cd SPACE `dirname ******`
Mode Four
Drag file directory directly to Cygwin
Way FINAL-1
Modify the. BASHRC: Override CD Method
function cd_func(){ if [ -f $1 ]; then cd `dirname $1` else cd [email protected] fi}alias cd=cd_func
Drag the file to the Cygwin window
CTRL + A
CD SPACE
Tail notes
The Cd_func there is a small problem, when using the CD without parameters, the CD will be executed, the dirname $1
command to execute the dirname (no parameter) will be the first help information, but in the script will not prompt, so in terms of use should still live, if the obsessive-compulsive friends can change their code;
PS: Can't Lose is
if [ "x"$1 != "x" && -f $1] ;then cd `dirname $1` else cd [email protected]fi
Shell rewrite built-in command--CD