Acredito que esse problema esteja relacionado à maneira como o terminal do Mac OS X lida com a emulação de terminal e até com o código de cores - que está relacionado às sequências de controle - conforme explicado nesta postagem do blog :
After upgrading to Lion I noticed that the Homebrew theme that I’ve been using since Snow Leopard doesn’t display colors correctly(using different colors for directories, different types of files etc.) any more when working on remote hosts via ssh (local dir colors still work though) and switching to other themes doesn’t help. After messing around with the Terminal settings I finally found the cause and a solution. It seems Lion changed the terminal type to
xterm-color256
during the upgrade (don’t remember what the setting was in SL though). The solution is simple enough, just change the emulation type for terminal fromxterm-color256
toxterm-color
(see screenshot below).
Aviso justo, alguns dos conselhos nesse tópico de comentário estão desatualizados, pois não há mais xterm-color
no terminal como no Mac OS X 10.8 (Mountain Lion). Mas acredito que o ajuste de itens na guia "Avançado" (na foto) pode ajudar: