Implement keep_alive

This commit is contained in:
Henrik Lissner 2013-10-21 04:19:12 -04:00
parent 0caac6d77b
commit 9d797e9995
3 changed files with 11 additions and 9 deletions

View file

@ -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
###############################################################################

View file

@ -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

View file

@ -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