autopush by david@ghost
This commit is contained in:
parent
eb1bee32d1
commit
a15f57c14a
4
myzsh.sh
4
myzsh.sh
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Reference in New Issue