some enhancements for managing this repo

This commit is contained in:
Johannes Findeisen 2015-06-29 03:17:37 +02:00
commit 8e66776f5e
2 changed files with 32 additions and 3 deletions

14
.zshrc
View file

@ -83,7 +83,7 @@ then
source ~/.zshprivate
fi
function home_help() {
function _home_help() {
echo "available commands:"
echo ""
echo "help: show this help text"
@ -94,13 +94,21 @@ function home_help() {
function home() {
case $1 in
diff)
cd ~
git diff
;;
help)
home_help
_home_help
;;
pull)
cd ~
git pull
;;
status)
cd ~
git status
;;
sub)
cd ~
git submodule update --init --recursive
@ -113,7 +121,7 @@ function home() {
*)
echo "command not found!"
echo ""
home_help
_home_help
;;
esac
}