Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
module Where | |
class <<self | |
attr_accessor :editor | |
def is_proc(proc) | |
source_location(proc) | |
end | |
def is_method(klass, method_name) | |
source_location(klass.method(method_name)) |
# long-running command growler | |
# hooks for zsh, built on bash version at http://hints.macworld.com/article.php?story=20071009124425468 | |
preexec_functions+='save_preexec_time' | |
save_preexec_time() { | |
export PREEXEC_CMD="$(history $HISTCMD | sed 's/ *[0-9]* *//')" | |
export PREEXEC_TIME=$(date +'%s') | |
} | |
precmd_functions+='growl_about_long_running_commands' |