From 30e42e76aacba3bdedb046ae9dfd3e338be2cd4a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 7 Mar 2013 03:58:35 -0500 Subject: [PATCH] Use sudo to permit --system gem updates --- zsh/aliases | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh/aliases b/zsh/aliases index c65b9cbc..36e6b6ec 100644 --- a/zsh/aliases +++ b/zsh/aliases @@ -40,6 +40,10 @@ function update() { brew update brew upgrade + # Keep sudo alive + sudo -v + while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & + # Make sure rvm is sourced properly if [ -f ~/.rvm/scripts/rvm ]; then [ "$(type -t rvm)" = "function" ] || source ~/.rvm/scripts/rvm