#!/usr/bin/env ruby
Put your script in usr/local/bin and make sure it is executable(chmod +x my_script)(This is already set in the path, you can check by doing an echo $PATH)
- cd ~ (Takes you to your home directory)
- mkdir bin (create a bin folder)
- vim .bash_profile (to set path environment variable)
- export PATH="$HOME/bin:$PATH" (Press i then add this line and then do esc and type :wq)