Created
August 9, 2013 09:43
-
-
Save AMHOL/6192470 to your computer and use it in GitHub Desktop.
Windows bashrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: This is my windows bashrc.bat file, I only really use it for doskey commands, | |
:: To get this to work go to Start > Type "regedit" > "HKEY_LOCAL_MACHINE" > "SOFTWARE" > "Microsoft" > "Command Processor" | |
:: look for "AutoRun" and change the "Data" field to an absolute path to THIS file. If it doesn't exist right-click and go to | |
:: "New" > "String Value" > type "AutoRun" and change the "Data" field to an absolute path to THIS file. | |
:: This file makes "rake" use "bundle exec rake", "s" starts my rails server, "c" for rails console, "m" for database | |
:: migrations and "mysql" is changed to "mysql -u root", this allows me to import databases easily with | |
:: "mysql dbname < file.sql" | |
@echo off | |
doskey rake=bundle exec rake $* | |
doskey s=rails s $* | |
doskey c=rails c $* | |
doskey m=bundle exec rake db:migrate $* | |
doskey mysql=mysql -u root $* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment