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