alias_qr_rainmaker@lemmy.world to linuxmemes@lemmy.world · 3 months agoSeriously, why?lemmy.worldimagemessage-square39linkfedilinkarrow-up1259arrow-down18
arrow-up1251arrow-down1imageSeriously, why?lemmy.worldalias_qr_rainmaker@lemmy.world to linuxmemes@lemmy.world · 3 months agomessage-square39linkfedilink
minus-squareMultiplexer@discuss.tchncs.delinkfedilinkarrow-up30·3 months agointeresting, didn’t know that… Will try! Finding out about “Ctrl-r” also was a gamechanger.
minus-squarefarcaller@fstab.shlinkfedilinkarrow-up8·3 months agoNext step is discovering atuin! https://atuin.sh/
minus-squarealias_qr_rainmaker@lemmy.worldOPlinkfedilinkarrow-up3arrow-down2·3 months agodude holy shit that is AWESOME! i had something similar, but it was a custom function. srch() { cat ~/.bash_history | grep -Ein “$@”}
minus-squareKorthrun@lemmy.sdf.orglinkfedilinkarrow-up1·3 months agoDid you know that grep can take the name of the file(s) you want it to search as the final arguments? For example: grep -Ein "$@" ~/.bash_history
interesting, didn’t know that… Will try!
Finding out about “Ctrl-r” also was a gamechanger.
Next step is discovering atuin! https://atuin.sh/
dude holy shit that is AWESOME! i had something similar, but it was a custom function.
srch() { cat ~/.bash_history | grep -Ein “$@”}
Did you know that grep can take the name of the file(s) you want it to search as the final arguments?
For example:
grep -Ein "$@" ~/.bash_history