diff options
author | Matthew Lemon <y@yulqen.org> | 2024-05-31 10:58:34 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-05-31 10:58:34 +0100 |
commit | 9172e552e4d0a24636d4102be240055e50ecbbba (patch) | |
tree | 33ccb503950e1a18482c0cef8d1d1c638271fc54 /bashrc | |
parent | 2eac880f074db74ccd645e7b9576b15502a523da (diff) |
Adds bash function to search fish history
Diffstat (limited to '')
-rw-r--r-- | bashrc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -84,6 +84,10 @@ alias brandom='beet play "$(beet random -p)"' alias qn2firefox='pandoc /home/lemon/Documents/Notes/quicknote.md -o /tmp/quicknote.html && firefox /tmp/quicknote.html' alias sync-tunnel='ssh -N -L 9090:127.0.0.1:8384 syncthing@syncthing-ct.banded-neon.ts.net' +grepfishhistory () { + grep "$1" ~/.local/share/fish/fish_history |cut -f3- -d' ' +} + # Environment variables export LEDGER_FILE="$HOME/Budget/hledger/budget.ledger" #export TERM="screen-256color" arch wiki says not to set this here. |