pub struct OhMyZshInstallAction { /* private fields */ }Expand description
OhMyZshInstallAction sets up ohmyzsh.
Implementations§
Source§impl OhMyZshInstallAction
impl OhMyZshInstallAction
Sourcepub fn new(skip_chsh: bool) -> Self
pub fn new(skip_chsh: bool) -> Self
Constructs a new OhMyZshInstallAction
Sourcepub fn check_zsh_is_installed(&self) -> bool
pub fn check_zsh_is_installed(&self) -> bool
Returns true if it can find a brew command
Sourcepub fn check_oh_my_zsh_is_installed(&self) -> bool
pub fn check_oh_my_zsh_is_installed(&self) -> bool
Returns true if the $ZSH environment var is set
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OhMyZshInstallAction
impl RefUnwindSafe for OhMyZshInstallAction
impl Send for OhMyZshInstallAction
impl Sync for OhMyZshInstallAction
impl Unpin for OhMyZshInstallAction
impl UnwindSafe for OhMyZshInstallAction
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more