Mac OSX bash function 备份

# mount the android file image 
function mountAndroid { hdiutil attach ~/android.dmg.sparsefile.sparseimage -mountpoint /Volumes/android; }

function jdk6 { JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home; }

function jdk7 { JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home; }

function jdk8 { JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk; }

function dcom { java -jar /Users/xirtam/Documents/tools/luyten-0.4.2.jar; }

function hiero { java -jar /Users/xirtam/Documents/mylife/game/engine/hiero.jar; }

function testc { gcc First.c
./a.out
 }

function his { open ~/.bash_history
}

function path { open ~/.bash_profile
}

function srcpath { source ~/.bash_profile
}

function dex2jar { 
cd /Users/xirtam/Documents/tools/dex2jar-2.0 
/Users/xirtam/Documents/tools/dex2jar-2.0/d2j-dex2jar.sh /Users/xirtam/Documents/tools/dex2jar-2.0/classes.dex --force
}

function gdxsetup { java -jar /Users/xirtam/Documents/mylife/Tools/engine/gdx-setup.jar 
}
function totest { cd /Users/xirtam/Documents/mylife/game/test 
}
function runA { ./gradlew android:installDebug android:run
}
function runD { ./gradlew desktop:run
}
function signAPK { jarsigner -digestalg SHA1 -sigalg MD5withRSA  -tsa https://timestamp.geotrust.com/tsa -keystore android.keystore -signedjar a.apk android-release-unsigned.apk xirtam
}

function zaAPK {
zipalign -v 4 a.apk b.apk
}

function maze {
java -jar /Users/xirtam/Documents/tools/MazeDesigner.jar
}

function mac {
#killall -s LookupViewService
#killall -9 
echo clean success
}

function prop {
adb shell getprop
}

function game1 {
/Users/xirtam/Downloads/Besiege/Besiege.app/Contents/MacOS/Besiege
}

function ccolor {
python /Users/xirtam/Documents/tools/ccolor.py $1 $2 $3
}

function job {
open /Users/xirtam/Documents/mylife
}

function chinese {
java -jar /Users/xirtam/Documents/mylife/Tools/self/picker.jar
}

function pkgjar {
cd /Users/xirtam/Documents/mylife/game/RECT/
./gradlew desktop:dist
}

function baidu {
java -jar /Users/xirtam/Documents/tools/proxyee-down-main.jar
}

function pkgexe {
cd /Users/xirtam/Documents/mylife/game/RECT/
./gradlew clean
./gradlew desktop:dist
cd /Users/xirtam/Documents/mylife/game/RECT/desktop/
java -jar /Users/xirtam/Documents/mylife/Tools/engine/packr.jar /Users/xirtam/Documents/mylife/game/RECT/desktop/packwin.json
}

function pkgmac {
cd /Users/xirtam/Documents/mylife/game/RECT/
./gradlew clean
./gradlew desktop:dist
cd /Users/xirtam/Documents/mylife/game/RECT/desktop/
java -jar /Users/xirtam/Documents/mylife/Tools/engine/packr.jar /Users/xirtam/Documents/mylife/game/RECT/desktop/packmac.json
}

function part {
cd /Users/xirtam/Documents/mylife/Tools/engine/libgdx-nightly-latest
java -cp gdx.jar:gdx-natives.jar:gdx-backend-lwjgl.jar:gdx-backend-lwjgl-natives.jar:extensions/gdx-tools/gdx-tools.jar com.badlogic.gdx.tools.particleeditor.ParticleEditor
}

function game {
cd /Users/xirtam/Documents/mylife/game/RECT/
}


function steam {
/Applications/Steam.app/Contents/Contents/MacOS/steam.sh -console
}

function steamtcp {
/Applications/Steam.app/Contents/MacOS/steam_osx -tcp
}

function gethsync {
geth --fast --cache=1024
}


function price {
#java -jar /Users/xirtam/Documents/mylife/game/KTest/out/artifacts/KTest_jar/KTest.jar
cd ~/IdeaProjects/SE/src/
java Bter
}


function fs {
java -jar /Users/xirtam/Documents/tools/finalspeed_client.jar /etc/init.d/finalspeed stop

}

function asf {
/Users/xirtam/Downloads/ASF-osx-x64/ArchiSteamFarm

}


function cypto {
java -jar /Users/xirtam/IdeaProjects/Cypto/out/artifacts/Cypto_jar/Cypto.jar

}

function miner {
/Users/xirtam/Downloads/m-minerd-64-macosx/m-minerd.command

}



function testAsm {
nasm -f macho64 -o asm1.o x.asm
ld -o asm1 -e _main asm1.o
./asm1
}

function py {
python

}

 

posted @ 2019-03-07 14:25  带狗狗带  Views(229)  Comments(0Edit  收藏  举报