Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adding a script to install/uninstall
ohmyzsh
easily, and addingjust
recipes for it. The reason the implementation is in a separate script and not directly in the just files, is to make this script usable inyafti
as well.Context
This feature is related to #246. I've already tested this downstream and I'm proposing this upstream because @castrojo showed interest in adding this feature to Bluefin as well.
Usage
shell script
The shell script can either be called directly, without argument, in which case it will check if
omz
is already installed, if it is it will propose the user to uninstall it. Otherwise it will propose the user to install it.You can directly call the
install
oruninstall
subcommands as arguments.These flags are also available:
-i
/--interactive
-> Use this script interactively (Default).-n
/--non-interactive
-> Use this script non interactively (This is especially useful if you want to call this from a GUI.-h
/--help
-> Print this help page and exit.just recipes
There are three
just
recipes available:ujust toggle-ohmyzsh
/ujust toggle-omz
-> Installohmyzsh
if it's not installed, uninstall it if it's already installed.ujust install-ohmyzsh
/ujust install-omz
-> Installohmyzsh
.ujust uninstall-ohmyzsh
/ujust-uninstall-omz
-> Uninstallohmyzsh
.Additional note
You might need to logout/log back in or restart when
chsh
for the change to work correctly.Testing
ujust toggle-omz
twice.ujust install-omz
.ujust uninstall-omz
.