ssh

warning: Creating default object from empty value in /var/www/www.lordvan.com/htdocs/drupal/modules/taxonomy/taxonomy.pages.inc on line 33.

A little useful addition for ssh login (from putty) to my .bashrc / .bash_profile

A while ago I was getting increasingly annoyed with encoding problems through ssh - especially when using putty from windows to access my box with filenames,.. in de_AT.UTF-8 - so I was constantly setting locale back to 'C' or something similar.
And well since I am lazy I did look for a way to make that happen automatically -- unfortunately I didn't find a -reasonably easy- way to see if I am using putty. But at least you can find out if you are logged in through ssh or not. So here's a little code snippet I added to my .bashrc to save myself from garbled console output:

Syndicate content