[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-nano] Post Exit Hook?

From: Chris Allegretta
Subject: Re: [Help-nano] Post Exit Hook?
Date: Mon, 6 Oct 2008 10:40:25 -0400

Hello Ashley,

Hmm, I think  that is out of scope for nano, that seems more like a feature which can be accomplished by the shell.  Assuming your shell is bash, consider adding the following to your .bashrc or .bash_profile:

function np {
    nano $1
    php -l $1

Then you could run "np <filename>" and it would produce the desired effect.

On Mon, Oct 6, 2008 at 6:49 AM, Ashley Hindle <address@hidden> wrote:

Is it possible to setup a post exit hook?

I would like to run "php -l $filename" after exiting from nano.


Ashley Hindle

t:  +44(0)1253 881433      
e:  address@hidden     w:


Help-nano mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]