about photos bookshelf portfolio blog home
Begin main content

psh (Perl Shell) and the Emacs shell-mode

That I love both Emacs and Perl is a matter of public record.

One of the thing that's great about so-called agile languages (like Perl) is that they lend themselves to interactive shells. If you've played with Ruby on Rails you have probably come across the excellent irb. Well psh is one (of many) such shell for Perl.

Trouble is it insists on extensively using gnu readline (if installed). This is great for regular terminals but is a royal pain if you try to use it within a shell-mode buffer in emacs.

To get rid of all those escape characters without hacking the code, add the following to your .pshrc:

require "$ENV{HOME}/.pshrc_emacs" if $ENV{EMACS} eq 't';
and that .pshrc_emacs should look like:

{
    package Psh::OS;
    sub setup_readline_handler {}
    sub remove_readline_handler {}
    sub reinstall_resize_handler {}
    sub check_terminal_size {}
}

1;

06:26 PM, 03 Nov 2006 by Mark Aufflick Permalink | Comments (0)

Interesting weblog stats

Every month the #1 search term for this site is either "skills matrix" or "IT skills matrix". What comes after that is somewhat variable.

"Mel Kaye" is always near the top of the list somewhere, proving the IT world's unending search for the folklore that is the closest thing we have to real history. I used to be on the first page of Google results for that query. Now I'm way down the ranks.

Now I have a new entry into the list - and it has debued at #2!

The new entry is ...(drumroll please).... MAGIC MUG CAKE!

You can read this highly sought after blog entry, but also take a look at the Google search. The only other solid reference to "magic mug cake" on the net is from someone in Melbourne (must be an AU only product) and they also have a sheep on their mug. Amazing coincidence?

04:01 PM, 03 Nov 2006 by Mark Aufflick Permalink | Comments (0)

XML

Blog Categories

software (4)
  ..heads up 'tunes (4)

Notifications

Icon of Envelope Request notifications

Syndication Feed

XML

Recent Comments

  1. Mark Aufflick: all good ideas
  2. Unregistered Visitor: Excellent!
  3. Mark Aufflick: Hey thanks
  4. Unregistered Visitor: Fantastic entry
  5. Mark Aufflick: Bah - dashboard widgets
  6. Unregistered Visitor: Nice
  7. Mark Aufflick: elegant maths (as opposed to elegant rabbit)
  8. Unregistered Visitor: Does that really matter?
  9. Mark Aufflick: Inspiration
  10. Unregistered Visitor: Perhaps...