diff .bashrc @ 274:102305dad796

fun notes to self
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 05 Apr 2013 15:56:46 -0700
parents eacc4c5ed628
children 19070b2af257
line wrap: on
line diff
--- a/.bashrc	Thu Apr 04 21:21:12 2013 -0700
+++ b/.bashrc	Fri Apr 05 15:56:46 2013 -0700
@@ -215,6 +215,7 @@
 
 isrunning() {
 # is a process running? (by name)
+# see also: talos for a better version
     for i in "$@"
     do
 	ps axwww  | grep "$i" | grep -v 'grep'
@@ -224,6 +225,7 @@
 
 killbyname() {
 # kill a process by name
+# see also: talos for a better version
     kill `isrunning "$@" | awk '{ print $1 }' | onelineit.py`
 }
 
@@ -300,6 +302,12 @@
 }
 
 hgrc() {
+# write an hgrc file
+# TODO: in the case you're in an `hg root`...what then?
+# - NOTE: /home/jhammel is an `hg root`, so be careful!
+# There should be a way to update $(hg root)/.hg/hgrc automatically
+# Likewise, git
+# Python script? .dotfile?
 ROOT="${1}"
 echo "[paths]"
 echo "default = ${ROOT}"
@@ -365,5 +373,4 @@
     html2flux.py $MENU > ~/.fluxbox/applications
 fi
 }
-
 regeneratefluxmenu