# HG changeset patch # User Jeff Hammel # Date 1371664008 25200 # Node ID 5438630e118c0698dce2e2fda7b1a6a923ffd9f7 # Parent 4d5d5097686f2adf463a5be1dbc6ef2519029324# Parent 5b67dd5ce0ba1326e6adcdba7906e7908588f7ef second commit diff -r 4d5d5097686f -r 5438630e118c .bashrc --- 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 diff -r 4d5d5097686f -r 5438630e118c .fluxbox/keys --- 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!