Re: bash: any way to reuse the last output?

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

 



Here's an interesting hack. It won't do after all, since it breaks
things like colors and columns in ls output, man page scrolling.. and
appends an ugly thing to all the lines in your history, with time. :)
But it's worth noting, since it illustrates useful resources:
(could it be fixed?)

.inputrc:
"^[k": accept-line
"^M": " | tee /tmp/h_lastcmd.out ^[k"

.bash_profile:
export __=/tmp/h_lastcmd.out

If you try it, Alt-k will stand for the old Enter; use "command $__" to
access the last output.

Best,
--
Herculano de Lima Einloft Neto




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux