I’d like to run a command called “showfiles” which would run the command “defaults write com.apple.finder AppleShowAllFiles TRUE” and “killall Finder” How do I go about doing this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are a couple ways of doing this…
Option 1:
Put a script in your ~/bin directory
Option 2:
Create an alias with AND to join the commands together:
Note: this will only run the second command if the first is successful.