Implement keep_alive
This commit is contained in:
parent
0caac6d77b
commit
9d797e9995
|
@ -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
|
||||
|
||||
|
||||
###############################################################################
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue