# Copy this function into your .bash_profile found at ~/.bash_profile # You can rename the function to your preference function new_ruby_project { mkdir $1; cd $1; mkdir lib/; touch lib/"$1".rb; mkdir test/; touch test/test_helper.rb; echo "require 'minitest'" >> test/test_helper.rb; touch test/"$1"_test.rb echo "require 'test_helper'" >> test/"$1"_test.rb; } # You use the bash script as follows $ new_ruby_project cat # This creates the following directory structure . ├── lib │   └── cat.rb └── test ├── cat_test.rb └── test_helper.rb