pub struct Fish;Implementations§
Source§impl Fish
impl Fish
pub fn does_exist() -> bool
Sourcepub fn get_rcfiles() -> Option<Vec<PathBuf>>
pub fn get_rcfiles() -> Option<Vec<PathBuf>>
Returns the configuration directory path for Fish shell
This function attempts to locate the Fish shell’s configuration directory by joining the user’s home directory with the Fish config path.
§Returns
Some(Vec<PathBuf>)containing the path to Fish’s conf.d directoryNoneif the home directory cannot be determined
§Important
Note that this function returns a directory path (conf.d), not individual
file paths. You’ll need to enumerate the directory contents to access
specific configuration files.
§Example
if let Some(paths) = get_rcfiles() {
// paths[0] points to ~/.config/fish/conf.d directory
// not to specific .fish files
}Trait Implementations§
Auto Trait Implementations§
impl Freeze for Fish
impl RefUnwindSafe for Fish
impl Send for Fish
impl Sync for Fish
impl Unpin for Fish
impl UnwindSafe for Fish
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more