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

Re: Tip of the day: restoring an aborted command-line



Alternately, you can add the aborted command to the kill buffer:

zle-line-init () {
  if [[ -n ${ZLE_LINE_ABORTED-} ]] ; then
    zle copy-region-as-kill "$ZLE_LINE_ABORTED"
    unset ZLE_LINE_ABORTED
  fi
}



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