On 3/13/2012 5:27 AM, Biltong wrote:
To make copy-pasting between different terminals work better, would it
be possible for the history built-in to support an option to suppress
line numbers?
Why would you want that?

  507  spam xxx.eml
  508  cd .jpilot
  509  grep -i poisson AddressDB.pdb
  510  l Address*
  511  vi AddressDB.pdb
  512  spamcup
  513  history


Now if  want to run command number 510, I just say

!510

If you *really* think this is a great idea, just roll your own

myhist()
{
    history | awk '{print $2}'
}

--
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net

Reply via email to