News for hackers. Stuff that matters.
Re:Ask HN: Best Unix Tricks? by nibrahim on Tuesday September 08, 2009 @09:44AM (#810934)
Perhaps Python specific but I use this a lot

  epy () { 
  	cmd="import $1 as a ; print   a.__file__.endswith('.pyc') and a.__file__[:-1] or a.__file__" 
  	file=$(/usr/bin/env python -c $cmd) 
  	echo $file
  	emacsclient --no-wait $file
  }

There are no comments on this comment yet.