We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f13dea commit 30d23cbCopy full SHA for 30d23cb
pure.zsh
@@ -722,12 +722,13 @@ prompt_pure_state_setup() {
722
)
723
}
724
725
-# Return true if executing inside a Docker, LXC or systemd-nspawn container.
+# Return true if executing inside a Docker, OCI, LXC, or systemd-nspawn container.
726
prompt_pure_is_inside_container() {
727
local -r cgroup_file='/proc/1/cgroup'
728
local -r nspawn_file='/run/host/container-manager'
729
[[ -r "$cgroup_file" && "$(< $cgroup_file)" = *(lxc|docker)* ]] \
730
|| [[ "$container" == "lxc" ]] \
731
+ || [[ "$container" == "oci" ]] \
732
|| [[ -r "$nspawn_file" ]]
733
734
0 commit comments