Personalizing Your Shell
Put all of your scripts in the ~/bin/ directory, and add ~/bin/ to your path. Beware of conflicting with system commands. One alternative is to prefix your commands with a comma.
Managing launchctl Services
launchctl list lists the running services, e.g.,
$ launchctl list | grep blog
1357 0 com.dchege711.blogserver
launchctl kickstart -k [service-target] restarts the service (-k kills it if
it were running before), e.g., launchctl kickstart -k gui/501/com.dchege711.blogserver.
References
- Start all of your commands with a comma. Brandon Rhodes. rhodesmill.org . news.ycombinator.com . Aug 18, 2009.
- mac osx - How to start/stop/restart launchd services from the command line? - Server Fault. serverfault.com . Accessed Jul 4, 2026.