bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFE: history without line numbers


From: Steven W. Orr
Subject: Re: RFE: history without line numbers
Date: Tue, 13 Mar 2012 08:39:37 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.27) Gecko/20120216 Thunderbird/3.1.19

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

[Prev in Thread] Current Thread [Next in Thread]