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

Re: PATCH: $ZLE_LINE_ABORTED



Cool, I was just wanting something like this the other day.. is there
a way to capture the line when exiting zle with C-c as well?

Here's how I'm using it, btw:

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

thanks,
Greg



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