mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-21 12:28:30 +00:00
Update documentation
This commit is contained in:
parent
6473e8c1be
commit
4df22e617f
@ -4,9 +4,9 @@ use std::path::{Path, PathBuf};
|
|||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
/// Wrapper for dirs that treats MacOS more like Linux.
|
/// Wrapper for 'dirs' that treats MacOS more like Linux, by following the XDG specification.
|
||||||
/// First, env variables `XDG_CACHE_HOME` and `XDG_CONFIG_HOME` are checked and the fall back is
|
/// This means that the `XDG_CACHE_HOME` and `XDG_CONFIG_HOME` environment variables are
|
||||||
/// `~/.cache/bat` and `~/.config/bat`.
|
/// checked first. The fallback directories are `~/.cache/bat` and `~/.config/bat`, respectively.
|
||||||
pub struct BatProjectDirs {
|
pub struct BatProjectDirs {
|
||||||
cache_dir: PathBuf,
|
cache_dir: PathBuf,
|
||||||
config_dir: PathBuf,
|
config_dir: PathBuf,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user