3 ms·
I've enjoyed using pyp[1] with fish to make some nice one-liners For example, custom history command to make early commands at the top, scroll to the bottom, a
by dsp_person 6y ago
I've enjoyed using pyp[1] with fish to make some nice one-liners
For example, custom history command to make early commands at the top, scroll to the bottom, and show the date and command on the same line
function hist; history -t -R | pyp '["\t".join(pair) for pair in zip(lines[::2],lines[1::2])]' | less +G; end; funcsave hist
[1] https://github.com/hauntsaninja/pyp https://github.com/hauntsaninja/pyp