Hacker News new | ask | show | jobs
by nibrahim 6130 days ago
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
  }