0
0
.dotfiles/.aliases.ps1

58 lines
1.9 KiB
PowerShell
Executable File

#######################################
############ don't edit lol ###########
#######################################
function ealias {
Start-Process -FilePath "$npp" -ArgumentList `"$ps_profile`" -Verb RunAs
}
function projects {
Set-Location $env:userprofile\projs
}
function projs {
projects
}
function dilf {
Set-Location $_dilf
}
function .. {
Set-Location ..
}
function .... {
Set-Location ../..
}
function no {
node --help
}
function twrp {
adb reboot bootloader; fastboot boot C:\Users\Corinthe\androidstuffz\twrp.img
}
function baksmalibasefunc { java -jar "C:\Users\Corinthe\ApkProjects\baksmali.jar" $args }
New-Alias -Name baksmali -Value baksmalibasefunc -Force -Option AllScope
function zipcmd { & "C:\Program Files\zippy\zip.exe" $args }
New-Alias -Name zip -Value zipcmd -Force -Option AllScope
function uberapk { java -jar C:\Users\Corinthe\.apklab\uber-apk-signer-1.2.1.jar -a $args --allowResign --overwrite }
New-Alias -Name signapk -Value uberapk -Force -Option AllScope
function trueapksigner { C:\Users\Corinthe\asdk\build-tools\32.0.0\apksigner.bat $args }
New-Alias -Name apksigner -Value trueapksigner -Force -Option AllScope
function nanoo { & C:\cygwin\bin\nano.exe $args }
New-Alias -Name nano -Value nanoo -Force -Option AllScope
function gitbash { & "C:\Program Files\Git\git-bash.exe" $args }
New-Alias -Name gbash -Value gitbash -Force -Option AllScope
function newCmdWin { cmd /c start cmd /b /k $args }
New-Alias -Name "new-command" -Value newCmdWin -Force -Option AllScope
function cyg { C:\cygwin\Cygwin.bat $args }
New-Alias -Name cygwin -Value cyg -Force -Option AllScope
function rtmux { /cygwin/bin/script.exe -c "export LC_ALL=en_US.UTF-8; export LANG=en_US.UTF-8; /bin/tmux -f ~/.dotfiles/tmux/tmux.conf" /dev/null $args }
New-Alias -Name tmux -Value rtmux -Force -Option AllScope
# -f ~/.dotfiles/tmux/tmux.conf