I added an #OhMyZSH plugin specifically for my various #HardenedBSD deployments. This new plugin adds a method by which a user can easily determine jailed status with is_jailed:

https://git.hardenedbsd.org/shawn.webb/oh-my-zsh/-/commit/4ffcb103872fdfd2027b09e26b105173186a960e

#ZSH

Add hardenedbsd plugin (4ffcb103) · Commits · Shawn Webb / oh-my-zsh · GitLab

The plugin currently only supports a method for determining if one is confined in a jail. Signed-off-by: Shawn Webb

GitLab