TIL you can inspect a CLI command using the type <cmd>
CLI command.
I usually use which <cmd>
to verify this but type
provides a human-readable description/comment of the command.
Here’s an example from my terminal:
$ type openai-env
openai-env is a shell function from /Users/<user>/.zshrc
$ which openai-env
openai-env () {
export $(cat $PYTHON_PROJECT_PATH/.env)
}
I learned this from Julia Evans’ recent comic strip on PATH
~ updated at: 2024-10-16T03:28:30.965Z