Skip to main content

get_user_bin_dir

Function get_user_bin_dir 

Source
pub fn get_user_bin_dir() -> Result<PathBuf, Error>
Expand description

Returns the directory used for user-installed command shims.

On Unix this is the conventional user bin directory (~/.local/bin) so shims are immediately available on most distributions without extra PATH configuration. Other platforms keep a dedicated directory inside Zoi’s data location.

§Errors

Returns an error if the home directory cannot be determined.