Miscellaneous Topics

Dated Apr 18, 2020; last modified on Sat, 04 Jul 2026

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

  1. Start all of your commands with a comma. Brandon Rhodes. rhodesmill.org . news.ycombinator.com . Aug 18, 2009.
  2. mac osx - How to start/stop/restart launchd services from the command line? - Server Fault. serverfault.com . Accessed Jul 4, 2026.