Skip to main content

normalize_comm

Function normalize_comm 

Source
pub fn normalize_comm(comm: &str) -> &str
Expand description

Strip a comm value down to its bare executable name for classification. macOS ps -o comm reports full paths (e.g. /bin/zsh); login shells arrive prefixed with - (e.g. -zsh). Both should match Shell.