Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: restarting application when it ends



Hello,

2010/7/30 Eric Smith <es@xxxxxxxxxxxx>:
> When my (asterisk) application stops, I loose the CLI
> and fall back into zsh.  How do I configure the shell
> to re-execute the last command run or explicitly
> to refire a specific command?

Not sure I understood the problem, but isn't an infinite loop what you
are looking for ?

  for ((;;)) asterisk

Of if you want to do it manually :

  !!              # if it's the last command
  !asterisk   # otherwise
  !N            # where N is the position in history

Best regards,

-- 
Jérémie



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