mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
41 lines
717 B
Bash
Executable file
41 lines
717 B
Bash
Executable file
#!/bin/zsh
|
|
|
|
function omz_usage() {
|
|
echo "Oh My Zsh command line tool. Available commands:"
|
|
echo " plugin NAME Enable plugin specified by NAME"
|
|
echo " theme Choose theme"
|
|
echo " upgrade Upgrade Oh My Zsh"
|
|
echo " uninstall Remove Oh My Zsh :("
|
|
echo " help Show this help"
|
|
}
|
|
|
|
COMMAND=$1
|
|
|
|
case $COMMAND in
|
|
|
|
plugin )
|
|
shift 1
|
|
source $ZSH/tools/omz-plugin.sh $@
|
|
;;
|
|
|
|
theme )
|
|
zsh $ZSH/tools/theme_chooser.sh
|
|
;;
|
|
|
|
upgrade )
|
|
zsh $ZSH/tools/upgrade.sh
|
|
;;
|
|
|
|
uninstall )
|
|
zsh $ZSH/tools/uninstall.sh
|
|
;;
|
|
|
|
help )
|
|
omz_usage
|
|
;;
|
|
|
|
* )
|
|
omz_usage
|
|
;;
|
|
|
|
esac
|