changeset 338:5438630e118c

second commit
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 19 Jun 2013 10:46:48 -0700
parents 4d5d5097686f (current diff) 5b67dd5ce0ba (diff)
children 99f8142078c7
files
diffstat 2 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.bashrc	Wed Jun 19 10:46:01 2013 -0700
+++ b/.bashrc	Wed Jun 19 10:46:48 2013 -0700
@@ -1,3 +1,7 @@
+#!/bin/bash
+### bash rc file ###
+
+# so
 PROFILE=/etc/profile
 if [ -e "${PROFILE}" ]
 then
@@ -337,8 +341,26 @@
 recreate-venv() {
     # recreate a virtualenv
     VIRTUALENV="virtualenv.py"
+    if ! which ${VIRTUALENV}
+    then
+        return 1
+    fi
+    VENV_PATH=$(which ${VIRTUALENV} &> /dev/null)
+
+    # update virtualenv if possible
+    DIRNAME=$(dirname ${VENV_PATH})
+    if [ -d "${DIRNAME}/.git" ]
+    then
+        cd "${DIRNAME}"
+        git pull
+        cd --
+    fi
+
+
+    # for each virtualenv given...
     for i in $@
     do
+        # ...recreate it...
         ${VIRTUALENV} --clear "${i}"
 
         SRCDIR="${i}"/src
--- a/.fluxbox/keys	Wed Jun 19 10:46:01 2013 -0700
+++ b/.fluxbox/keys	Wed Jun 19 10:46:48 2013 -0700
@@ -88,6 +88,9 @@
 # y: ?
 # z: zoom?
 
+# TODO: screenshots
+# http://askubuntu.com/questions/168117/how-to-automatically-add-meta-tags-to-screenshot?rq=1
+
 # also, l could go to launch to free up s
 
 # the graveyard!