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

Re: vared in scripts and history



On Feb 15,  1:19pm, Stephane Chazelas wrote:
} Subject: vared in scripts and history
}
} while a=; vared -p "$2" -e a; do
} 
} Now, I'd like to add some history support. But I couldn't have it to
} work. Is there any way?

With 4.2.3:

    fc -p -a $HOME/.zfhistory 10 10
    while a=; vared -h -p "$2" -e a; do
      { ... } < $1
      print -s "${(P)2}"
    done



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