4 ms·
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
by godDLL 17y ago
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)\$ '