Skip to main content

short_path

Function short_path 

Source
pub fn short_path(path: &Path, home: &Path) -> String
Expand description

Render a compact path label using ~/... when under home, abbreviating all parent directories to a single character and keeping the last segment intact.