News for hackers. Stuff that matters.
Re:Tell HN: Best OS X Utility for programmers who use the co... by godDLL on Monday March 01, 2010 @05:49AM (#1158479)
DTerm is awesome, and since it went free there is no reason not to try it out even if you're a Quicksilver/LaunchBar user – you probably will find it serves you better in many scenarios.

And here's a nice tidbit – TextMate comes with `mate`, a proxy utility you can call with DTerm like so: `mate ./new_file_here`. But XCode doesn't, and won't create a file for you if one doesn't exist. So for XCode I have an function/proxy in my `~/.profile`:

   function edit { touch "$1"; open -a Xcode "$1"; }
Bash can be very usefully augmented, for instance you can have a git repo status in your prompt, like so:

   function wgit_dirty {
      git diff --quiet HEAD &>/dev/null
      [[ $? == 1 ]] && echo "◆"
   }
   function wgit_branch {
      REF=$(git symbolic-ref HEAD 2> /dev/null) || return
      echo :${REF#refs/heads/}$(wgit_dirty)
   }
   export PS1='\u \W$(wgit_branch)\$ '
Re:Tell HN: Best OS X Utility for programmers who use the co... by andrewtj on Monday March 01, 2010 @07:16PM (#1160229)
For anyone interested in having Git, SVN and VirtualEnv status in your prompt: http://pastebin.com/f79a9af51
Re:Tell HN: Best OS X Utility for programmers who use the co... by riffraff on Monday March 01, 2010 @07:22AM (#1158564)
you may like __git_ps1 :)