david/myzsh
david
/
myzsh
Archived
1
0
Fork 0

autopush by david@ghost

This commit is contained in:
david 2017-10-03 21:47:56 +02:00
parent eb1bee32d1
commit a15f57c14a
2 changed files with 3 additions and 2 deletions

View File

@ -10,11 +10,11 @@ if [[ $POST_1_7_2_GIT -gt 0 ]]; then
SUBMODULE_SYNTAX="--ignore-submodules=dirty"
fi
if [[ -n $(git status -s ${SUBMODULE_SYNTAX} 2> /dev/null) ]]; then
echo -e "[myzsh]: local myzsh repo is dirty. commit & push changes? [y/n] \c"
echo -e "[myzsh]: local myzsh repo is dirty. commit and push changes? [y/n] \c"
read choice
if [ $choice = "y" ]; then
git add **/*[^lastrun]
git commit -am "autopush by $(whoami)@$(hostname) $(date "+%d.%m.%Y %H:%M")"
git commit -am "autopush by $(whoami)@$(hostname)"
git push origin master
fi
fi

View File

@ -7,6 +7,7 @@ alias zz='source ~/.zshrc'
alias vz='vim ~/.zshrc && source ~/.zshrc'
alias vp='vim $ZSH/plugins/david.zsh && source ~/.zshrc'
alias vt='vim $ZSH/themes/david.zsh && source ~/.zshrc'
alias vs='vim $ZSH/myzsh.sh && source ~/.zshrc'
alias vi='vim'
alias v='vim'
alias publish="python2 -m SimpleHTTPServer"