This question already has an answer here:
Please could you tell me where can I find the File Manager Preferences in Ubuntu 13.04. I want to run a sh file.
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Open Files -> Preferences in the menu bar. In the preferences dialog, you find the option for running shell files under the tab Behavior -> Executable Text Files: