From 9c02f7513df0e45f0852984a2d25572ff964868f Mon Sep 17 00:00:00 2001 From: nebirhos Date: Fri, 23 Mar 2012 22:37:53 +0100 Subject: [PATCH] Added omz script stub --- bin/omz | 40 ++++++++++++++++++++++++++++++++++++++++ oh-my-zsh.sh | 2 ++ 2 files changed, 42 insertions(+) create mode 100755 bin/omz diff --git a/bin/omz b/bin/omz new file mode 100755 index 000000000..32d58d0d5 --- /dev/null +++ b/bin/omz @@ -0,0 +1,40 @@ +#!/bin/zsh + +STATUS=0 + +function omz_usage() { + echo "OH MY ZSH! command line tool" + echo " theme choose your theme" + echo " upgrade upgrade OH MY ZSH" + echo " uninstall remove OH MY ZSH :(" + echo " help show this help" +} + + +case $1 in + + theme ) + zsh $ZSH/tools/theme_chooser.sh + ;; + + upgrade ) + zsh $ZSH/tools/upgrade.sh + ;; + + uninstall ) + echo "Are you sure?" + zsh $ZSH/tools/uninstall.sh + ;; + + help ) + omz_usage + ;; + + * ) + omz_usage + STATUS=1 + ;; + +esac + +exit $STATUS diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index 732a403b7..f3f9e49b0 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -74,3 +74,5 @@ else fi fi +# Add omz command line tool +export PATH="$ZSH/bin:$PATH"