24c678613f0b
Lots.
author | Steve Losh <steve@stevelosh.com> |
---|---|
date | Thu, 13 Jan 2011 12:40:43 -0500 |
parents | edab9fa6d358 |
children | 7834f1e31a2f |
branches/tags | (none) |
files | .hgrc config/fish/config.fish |
Changes
--- a/.hgrc Thu Jan 13 00:07:32 2011 -0500 +++ b/.hgrc Thu Jan 13 12:40:43 2011 -0500 @@ -186,3 +186,8 @@ ignore = ![ -n "$@" ] && echo '$@' >> `$HG root`/.hgignore && \ $HG commit `$HG root`/.hgignore -Am 'Add "$@" to .hgignore.' +# hgd management commands +rund = !dtach -n /tmp/hgd.sock ~/lib/virtualenvs/hgd/bin/python ~/src/hgd/hgd.py +statd = !ps auxww | grep -v grep | grep hgd.py >/dev/null && echo 'running' || echo "not running" +killt = !ps auxww | grep "hgd/hgd.py" | grep -v grep | sed -e 's/ */ /g' | cut -d" " -f2 | cat +killd = !ps auxww | grep "hgd/hgd.py" | grep -v grep | sed -e 's/ */ /g' | cut -d" " -f2 | xargs kill
--- a/config/fish/config.fish Thu Jan 13 00:07:32 2011 -0500 +++ b/config/fish/config.fish Thu Jan 13 12:40:43 2011 -0500 @@ -13,32 +13,33 @@ alias M 'mvim .' # Environment variables ------------------------------------------------------ -set -g EDITOR vim -set -g PATH "$HOME/.gem/ruby/1.8/bin:$PATH" -set -g PATH "/usr/local/bin:/usr/local/sbin:$HOME/bin:/opt/local/bin:$PATH" -set -g PATH "/opt/subversion/bin:$PATH" -set -g COMMAND_MODE unix2003 -set -g RUBYOPT rubygems -set -g CLASSPATH "$CLASSPATH:/usr/local/Cellar/clojure-contrib/1.2.0/clojure-contrib.jar" +set PATH "$HOME/.gem/ruby/1.8/bin:$PATH" +set PATH "/usr/local/bin:/usr/local/sbin:$HOME/bin:/opt/local/bin:$PATH" +set PATH "/opt/subversion/bin:$PATH" +set -g -x EDITOR vim +set -g -x COMMAND_MODE unix2003 +set -g -x RUBYOPT rubygems +set -g -x CLASSPATH "$CLASSPATH:/usr/local/Cellar/clojure-contrib/1.2.0/clojure-contrib.jar" # Python variables ----------------------------------------------------------- -set -g PIP_DOWNLOAD_CACHE "$HOME/.pip/cache" -set -g PYTHONSTARTUP "$HOME/.pythonrc.py" -set -g WORKON_HOME "$HOME/lib/virtualenvs" +set -g -x PIP_DOWNLOAD_CACHE "$HOME/.pip/cache" +set -g -x PYTHONSTARTUP "$HOME/.pythonrc.py" +set -g -x WORKON_HOME "$HOME/lib/virtualenvs" -set -g PATH "$PATH:/usr/local/Cellar/PyPi/3.6/bin" -set -g PATH "$PATH:/usr/local/Cellar/python/2.7.1/bin" -set -g PATH "$PATH:/usr/local/Cellar/python/2.7/bin" -set -g PATH "$PATH:/usr/local/Cellar/python/2.6.5/bin" +set PATH "$PATH:/usr/local/Cellar/PyPi/3.6/bin" +set PATH "$PATH:/usr/local/Cellar/python/2.7.1/bin" +set PATH "$PATH:/usr/local/Cellar/python/2.7/bin" +set PATH "$PATH:/usr/local/Cellar/python/2.6.5/bin" -set -g PYTHONPATH "$PYTHONPATH:/usr/local/lib/python2.7.1/site-packages" -set -g PYTHONPATH "$PYTHONPATH:/usr/local/lib/python2.7/site-packages" -set -g PYTHONPATH "$PYTHONPATH:/usr/local/lib/python2.6/site-packages" -set -g PYTHONPATH "$HOME/lib/python/see:$PYTHONPATH" +set -g -x PYTHONPATH "" +set PYTHONPATH "$PYTHONPATH:/usr/local/lib/python2.7.1/site-packages" +set PYTHONPATH "$PYTHONPATH:/usr/local/lib/python2.7/site-packages" +set PYTHONPATH "$PYTHONPATH:/usr/local/lib/python2.6/site-packages" +set PYTHONPATH "$HOME/lib/python/see:$PYTHONPATH" # Mercurial variables -------------------------------------------------------- -set -g PATH="$HOME/lib/hg/hg-stable:$PATH" -set -g PYTHONPATH="$HOME/lib/hg/hg-stable:$PYTHONPATH" +set PATH "$HOME/lib/hg/hg-stable:$PATH" +set PYTHONPATH "$HOME/lib/hg/hg-stable:$PYTHONPATH" # Extra ---------------------------------------------------------------------- . ~/src/z-fish/z.fish @@ -51,3 +52,9 @@ function z_add --on-event prompt z --add "$PWD" end + +# hgd (for now) -------------------------------------------------------------- + +function h + /Users/sjl/src/hgd/hd $argv +end