Skip to content

Instantly share code, notes, and snippets.

@lakemove
Created June 14, 2012 01:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lakemove/2927645 to your computer and use it in GitHub Desktop.
Save lakemove/2927645 to your computer and use it in GitHub Desktop.
customized windows commandline
@ECHO OFF
doskey ls=dir /b $*
rem Java
set JAVA_HOME=C:\opt\jdk1.6.0_25
set Path=%JAVA_HOME%\bin;%Path%
rem Maven
set MVN_HOME=C:\opt\apache-maven-3.0.4
set Path=%MVN_HOME%\bin;%Path%
rem Ant
set ANT_HOME=C:\opt\apache-ant-1.8.2
set Path=%ANT_HOME%\bin;%Path%
rem PSCP
set PUTTY_HOME=c:\opt\Putty
set Path=%PUTTY_HOME%;%Path%
doskey scp=%PUTTY_HOME%\pscp.exe -i %PUTTY_HOME%\jay-id_rsa.ppk
rem Notepad++
set Path=C:\"Program Files (x86)"\Notepad++;%Path%
doskey vi=notepad++.exe $*
rem Git
set GIT_HOME=C:\opt\git-1.7.9
set Path=%GIT_HOME%\bin;%Path%
rem VirtualBox
set Path=C:\"Program Files"\Oracle\VirtualBox\;%Path%
doskey startvm=VBoxManage startvm --type headless $*
doskey stopvm=VBoxManage controlvm $1 poweroff
doskey startubuntu=VBoxManage startvm "ubuntu" --type headless
echo JAVA_HOME %JAVA_HOME%
echo MVN_HOME %MVN_HOME%
echo ANT_HOME %ANT_HOME%
CMD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment