pushzshconfig 20.06.2013 20:02
This commit is contained in:
parent
2bb5793234
commit
dcd8fa673b
6
myzsh.sh
6
myzsh.sh
|
@ -29,12 +29,12 @@ if [ -r $ZSH/lastrun ];then
|
|||
echo -e "do you want to fix this? [y/n] \c"
|
||||
read choice
|
||||
if [ $choice = "y" ]; then
|
||||
cd $ZSH; git remote -v | grep @ >> /dev/null; cd -
|
||||
cd $ZSH; git remote -v | grep @ >> /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
cd $ZSH; git remote rm origin
|
||||
git remote rm origin
|
||||
git remote add origin git@github.com:beyondthewall/myzsh.git
|
||||
else
|
||||
cd $ZSH; git remote rm origin
|
||||
git remote rm origin
|
||||
git remote add origin https://github.com/beyondthewall/myzsh.git
|
||||
fi
|
||||
cd -
|
||||
|
|
Reference in New Issue