alecsargent@lemmy.zip to linuxmemes@lemmy.world · 6 days agoThat is a lot of flagslemmy.zipexternal-linkmessage-square137linkfedilinkarrow-up1734arrow-down110file-text
arrow-up1724arrow-down1external-linkThat is a lot of flagslemmy.zipalecsargent@lemmy.zip to linuxmemes@lemmy.world · 6 days agomessage-square137linkfedilinkfile-text
minus-squarekaty ✨@piefed.blahaj.zonelinkfedilinkEnglisharrow-up4arrow-down1·6 days agomore ~/.zsh_history | grep tar highlight copy paste move cursor to change file am i doing it right
minus-squarechellomere@lemmy.worldlinkfedilinkarrow-up4·6 days agoIf you use fzf you can just type “ctrl-r tar”
minus-squareHugh@programming.devlinkfedilinkarrow-up4·6 days agoYou don’t need more, you can just grep tar ~/.zsh_history If you only want the first ten results pipe to head. If you want more interactivity use less ~/.zsh_history Then press / to search. Press n for next match
minus-squaresmeenz@lemmy.nzlinkfedilinkarrow-up3·edit-26 days agoPress Ctrl-R then type “tar” and if it’s not the most recent one you want, then press ctrl-r again until you find the right one.
more ~/.zsh_history | grep tar
highlight
copy
paste
move cursor to change file
am i doing it right
If you use fzf you can just type “ctrl-r tar”
You don’t need more, you can just
grep tar ~/.zsh_historyIf you only want the first ten results pipe to head.
If you want more interactivity use
less ~/.zsh_historyThen press / to search. Press n for next matchPress Ctrl-R then type “tar” and if it’s not the most recent one you want, then press ctrl-r again until you find the right one.