Yes – just put a .command
suffix on the script.
Note: make sure the script is executable, e.g.
$ chmod +x myscript.command
Related Contents:
- How to run a shell script in OS X by double-clicking?
- How to mkdir only if a directory does not already exist?
- What is the $? (dollar question mark) variable in shell scripting? [duplicate]
- Meaning of $? (dollar question mark) in shell scripts
- Checking for the correct number of arguments
- What does $$ mean in the shell?
- Remove duplicate lines without sorting [duplicate]
- How do I preserve the remote filename when Downloading a file using curl [duplicate]
- Batch files – number of command line arguments
- Global environment variables in a shell script
- Remove part of path on Unix
- Write byte at address (hexedit/modify binary from the command line)
- Creating files with some content with shell script
- What is the difference between $@ and $* in shell scripts?
- How does the #! shebang work?
- total size of group of files selected with ‘find’
- How do I reload ZSH config files without replacing the current shell?
- How to Pass parameters for a Ant script , which is invoked via shell script?
- How can I write and append using echo command to a file
- How to set the process name of a shell script?
- How to add timestamp to STDERR redirection
- How to use SSH to run a local shell script on a remote machine?
- How to read a file into a variable in shell?
- Using cURL to upload POST data with files
- Block Comments in a Shell Script
- How to send data to local clipboard from a remote SSH session
- ZSH alias with parameter
- How to select lines between two marker patterns which may occur multiple times with awk/sed
- How do you grep a file and get the next 5 lines
- sed whole word search and replace
- How to check if a process is running inside docker container?
- How to set environment variables in fish shell
- Find multiple files and rename them in Linux
- Is there any reason to use bash over zsh? [closed]
- How to find the gateway IP address in Linux
- Can GNU make handle filenames with spaces?
- How to print lines between two patterns, inclusive or exclusive (in sed, AWK or Perl)?
- How do I measure duration in seconds in a shell script?
- Importing functions from a shell script
- in linux terminal, how do I show the folder’s last modification date, taking its content into consideration?
- Shell script to capture Process ID and kill it if exist [duplicate]
- Date command does not follow Linux specifications (Mac OS X Lion)
- How to input a path with a white space?
- How can I make TMUX be active whenever I start a new shell session?
- Do manual build fail in Jenkins using shell script
- Windows shortcut to run a Git Bash script
- How to get the default shell
- if statement to check $HOSTNAME in shell script
- How to set the From email address for mailx command?
- How to bring an Orphaned Background Process back to Foreground?