diff --git a/install/osx b/install/osx index 474ef303..96e1aa30 100755 --- a/install/osx +++ b/install/osx @@ -2,11 +2,8 @@ # ~/.osx — http://mths.be/osx -# Ask for the administrator password upfront -sudo -v - -# Keep-alive: update existing `sudo` time stamp until `.osx` has finished -while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & +source ~/.dotfiles/zsh/lib/util +keep_alive ############################################################################### diff --git a/install/py b/install/py index cd6773d8..54b63d7a 100755 --- a/install/py +++ b/install/py @@ -4,10 +4,13 @@ if ! pkg_exists python; then pkg_install python fi +source ~/.dotfiles/zsh/lib/util +keep_alive + echo_g "==> Installing plugins" -easy_install pip -easy_install cython -pip install PyOpenGL PyOpenGL_accelerate +sudo easy_install pip +sudo easy_install cython +sudo pip install PyOpenGL PyOpenGL_accelerate # Install sfml source ~/.dotfiles/install/sfml diff --git a/install/sfml b/install/sfml index a89a35ef..89e12a86 100755 --- a/install/sfml +++ b/install/sfml @@ -2,6 +2,8 @@ if is_mac; then + keep_alive + # Get SFML 2.1 if [ ! -d /Library/Frameworks/SFML.framework ]; then echo_g "==> Installing SFML 2.1" @@ -18,7 +20,7 @@ if is_mac; then sudo ./install.sh rm -rf ~/.temp-sfml - pip install git+git://github.com/Sonkun/python-sfml.git@v1.3 + sudo pip install git+git://github.com/Sonkun/python-sfml.git@v1.3 else echo_r "==> SFML 2.1 already installed" fi