MacOS: Opening Git commit prompt in active GUI editor

This is a quick, neat thing I happened to find on accident. As a result of the application bundle system that MacOS uses ubiquitously, you can figure out the currently open application with the __CFBundleIdentifier environment variable. $ echo $__CFBundleIdentifier dev.zed.Zed This bundle identifier uniquely identifies an installed application. Many editors or IDEs (Zed in my example) allow you to…