getting lessc working

after trying to get lessc working following the post http://ken.edmonds-commerce.co.uk/css/four-commands-away-from-installing-less-css-on-ubuntu/ with no luck i finally managed it as follows (and as i just notices these are also only four command) …

sudo aptitude install git nodejs
sudo git clone https://github.com/cloudhead/less.js.git /opt/lessc

open your .bashrc file using the command

gedit ~/.bashrc

and add the following new line to make lessc work

alias lessc='nodejs /opt/lessc/bin/lessc'

as the alias takes no effect in the opened terminal open a new terminal and it will work