Skip to content

Instantly share code, notes, and snippets.

@AMHOL
Created August 9, 2013 09:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AMHOL/6192470 to your computer and use it in GitHub Desktop.
Save AMHOL/6192470 to your computer and use it in GitHub Desktop.
Windows bashrc
:: 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