mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Added omz script stub
This commit is contained in:
parent
1120f97305
commit
9c02f7513d
2 changed files with 42 additions and 0 deletions
40
bin/omz
Executable file
40
bin/omz
Executable file
|
|
@ -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
|
||||||
|
|
@ -74,3 +74,5 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Add omz command line tool
|
||||||
|
export PATH="$ZSH/bin:$PATH"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue