pub struct ShellIntegration {
pub shell_kind: String,
pub rc_path: String,
pub rc_path_abs: PathBuf,
pub line_present: bool,
pub eval_line: String,
}Expand description
What we found out about the eval "$(dodot init-sh)" line.
Fields§
§shell_kind: StringDetected user shell (zsh, bash, fish, unknown).
rc_path: StringPath to the rc file we’d suggest editing (display form).
rc_path_abs: PathBufAbsolute path of the rc file, for actual writes.
line_present: boolTrue if the eval line is already present in the rc file.
eval_line: StringThe full eval line we’d suggest adding.
Trait Implementations§
Source§impl Clone for ShellIntegration
impl Clone for ShellIntegration
Source§fn clone(&self) -> ShellIntegration
fn clone(&self) -> ShellIntegration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShellIntegration
impl Debug for ShellIntegration
Auto Trait Implementations§
impl Freeze for ShellIntegration
impl RefUnwindSafe for ShellIntegration
impl Send for ShellIntegration
impl Sync for ShellIntegration
impl Unpin for ShellIntegration
impl UnsafeUnpin for ShellIntegration
impl UnwindSafe for ShellIntegration
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