# HG changeset patch # User Jeff Hammel # Date 1365202606 25200 # Node ID 102305dad796c55f2024f316deb696eadc27bb5a # Parent 71e5879500a728e52b1c68e29dcd9569f092b632 fun notes to self diff -r 71e5879500a7 -r 102305dad796 .bashrc --- 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 diff -r 71e5879500a7 -r 102305dad796 .irssi/config --- a/.irssi/config Thu Apr 04 21:21:12 2013 -0700 +++ b/.irssi/config Fri Apr 05 15:56:46 2013 -0700 @@ -213,3 +213,12 @@ }; hilights = ( { text = "jhammel"; } ); ignores = ( { mask = "JOINS"; level = "QUITS"; } ); + +# How to save a window buffer [TODO: -> command] +# http://forums.bsdnexus.com/viewtopic.php?id=1368 +# all the output from the lastlog command will be saved to a file stored by default in your homedir. + + +# /window log on +# /lastlog -force +# /window log off \ No newline at end of file