28th October 2008

Vim, GNU Screen and mouse

Tags : ,

Are you using your mouse with Vim ? You know, the little set mouse=a in your ~/.vimrc ? This just work with some terminal emulators (Xterm, RXVT, etc) but not with GNU Screen. The mouse just select text in the term :(

You can easily correct this. Just say to Vim how to handle the mouse for this terminal. Use a set ttymouse=xterm2 and it's done. Tadaaaa, you have a GNU Screen session on /dev/ttyUSB0, another for your code in Vim and another one for make... Happiness...

posted in Unix tools | 0 Comments

26th October 2008

Mutt and MIME types

Tags : ,

I play with Asterisk for now and i just get a FXO Novalink card (thanks eBay). So when someone call Asterisk just take the message and mail it to me as a WAV file. But how to say to my Mutt to use the right tool for playing this file ? The answer is ~/.mailcap.

Read the rest of this entry »

posted in Unix tools | 0 Comments

25th October 2008

Finding boxes on the LAN with ARP

Tags : ,

Sometime we don't have time to make all things clean. You know, the «I will do it tomorrow» syndrom. But, you know, we will never do it... And a good day, we take a look to the LAN and we... AAAAAhhhh ! Ok, it's time to delete the 3 year old «Clean the LAN with a good DHCP configuration» line in the TODO list. But, how to address all the boxes without running from one room to another ? Simple. Just ask ARP...

Read the rest of this entry »

posted in Unix tools | 0 Comments

25th October 2008

Bash_completion on Mac OS X 10.5

Tags :

Some days i really don't understand Cupertino's guys. 10.5 with Bash is fine, but a full Bash configuration is much better. Good completion is missing. Let's take a look to correct that...

Read the rest of this entry »

posted in Unix tools | 2 Comments