some enhancements for managing this repo
This commit is contained in:
parent
b69ffa0886
commit
8e66776f5e
2 changed files with 32 additions and 3 deletions
14
.zshrc
14
.zshrc
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue