Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: sticky-notes script [was: Zsh - push current command on history without executing it]
- X-seq: zsh-users 12432
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: sticky-notes script [was: Zsh - push current command on history without executing it]
- Date: Wed, 16 Jan 2008 00:06:59 -0800
- In-reply-to: <478D3A6D.30704@xxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080104105900.37a87f7e@news01> <237967ef0801040304h494987bv939bf6ff9541123f@xxxxxxxxxxxxxx> <477E177A.3060303@xxxxxxxxxxxxx> <Xns9A20C0F173D23zzappergmailcom@xxxxxxxxxxxx> <080113000048.ZM15017@xxxxxxxxxxxxxxxxxxxxxx> <478D3A6D.30704@xxxxxxxx>
On Jan 15, 5:57pm, Jean-Rene David wrote:
}
} * Bart Schaefer [1/13/2008 3:00 AM]:
}
} > # Invoked as a command, behave like zed, but write a history file
} > setopt extendedhistory nobanghist
} > fc -ap $STICKYFILE $STICKYSIZE $STICKYSIZE
}
} This is very nice, but the line above gives me:
}
} sticky-notes:fc:49: not interactive shell
Sorry; the #!/bin/zsh line was mostly just pro-forma, the script is
really intended to be an autoloaded function:
autoload -U sticky-note
However, I believe you can fix the script by changing the #! line to
#!/bin/zsh -fi
I'll commit that change to CVS.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author