osx

Oct 30 12:08

Installer Vim 7.3 sur Mac 10.6 (snow leopard)

C'est très simple. Il suffit d'installer macvim via homebrew et de faire un lien.

brew install macvim
ln -s /usr/local/bin/mvim /usr/local/bin/vim

Voilà maintenant vous pouvez profiter du plugin http://sjl.bitbucket.org/gundo.vim :)

Oct 02 2010

Get the path from the last Finder window to Terminal

function ff { osascript -e 'tell application "Finder"'\
-e 'if (0 < (count Finder windows)) then'\
-e 'set finderpath to get target of the front window as alias'\
-e 'else'\
-e 'set finderpath to get desktop as alias'\
-e 'end if'\
-e 'get POSIX path of finderpath'\
-e 'end tell';};\

function cdff { cd "`ff $@`"; };

Sadly with Total Finder visor it doesn't work.

Apr 02 2010

Installing Apache Solr on Mac OSX Snow Leopard for Drupal

The apachesolr module for Drupal provides a first class search engine with faceted search and more. This module needs a solr server to work.

This post explains how you can install the module and a solr server on Mac OS 10.6.