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]



* Bart Schaefer [1/13/2008 3:00 AM]:

# A little zsh sticky-note ("post-it") application.


[snip beginning of script]

# 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

I tried on both:
zsh 4.3.4 (i686-pc-cygwin)
zsh 4.2.0 (i386-redhat-linux-gnu)

zsh won't let me "setopt interactive" in
the script, so not sure what to try next.

--
JR



Messages sorted by: Reverse Date, Date, Thread, Author