aboutsummaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-05-31 10:58:34 +0100
committerMatthew Lemon <y@yulqen.org>2024-05-31 10:58:34 +0100
commit9172e552e4d0a24636d4102be240055e50ecbbba (patch)
tree33ccb503950e1a18482c0cef8d1d1c638271fc54 /bashrc
parent2eac880f074db74ccd645e7b9576b15502a523da (diff)
Adds bash function to search fish history
Diffstat (limited to '')
-rw-r--r--bashrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index b95c2d9..f6c403f 100644
--- a/bashrc
+++ b/bashrc
@@ -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.