autopush by david@ghost
This commit is contained in:
parent
c489cc9e0d
commit
c52dc6f56a
|
@ -1,10 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
removeohmyzsh()
|
|
||||||
{
|
|
||||||
rm -rf ~/.oh-my-zsh
|
|
||||||
}
|
|
||||||
|
|
||||||
installdeps()
|
installdeps()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -93,13 +88,10 @@ installmyzsh()
|
||||||
|
|
||||||
|
|
||||||
if [ -d ~/.myzsh ]; then
|
if [ -d ~/.myzsh ]; then
|
||||||
echo ""
|
|
||||||
echo "[myzsh]: it seems i have already been setup."
|
echo "[myzsh]: it seems i have already been setup."
|
||||||
echo ""
|
|
||||||
read -p "[myzsh]: should i cleanup and reinstall? [y/n]" choice
|
read -p "[myzsh]: should i cleanup and reinstall? [y/n]" choice
|
||||||
if [ $choice = "y" ]; then
|
if [ $choice = "y" ]; then
|
||||||
installdeps
|
installdeps
|
||||||
#removeohmyzsh
|
|
||||||
installmyzsh
|
installmyzsh
|
||||||
else
|
else
|
||||||
echo "[myzsh]: updating instead."
|
echo "[myzsh]: updating instead."
|
||||||
|
@ -109,7 +101,6 @@ if [ -d ~/.myzsh ]; then
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
installdeps
|
installdeps
|
||||||
#removeohmyzsh
|
|
||||||
installmyzsh
|
installmyzsh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Reference in New Issue