homes/common/.config/fish/functions/gitgrephistory.fish
kujiu (@uberwald) 8ca6287fb1
Update all tools
-> Passwords in KeePassXC (access by keyring)
-> Neomutt + Aerc (mail)
-> vdirsyncer + khal + khard (calendar and contacts)
zsh -> fish
-> poezio (XMPP)
-> newsboat (RSS with FreshRSS)
-> toot (Mastodon client)
vim -> neovim (with lunarvim)
-> nvimpager (pager based on neovim)
-> konsole

With Nightfox theme.
2023-09-02 00:40:34 +02:00

9 lines
234 B
Fish
Executable file

#!/usr/bin/env fish
function gitgrephistory
if test (count $argv) -eq 1
git rev-list --all | xargs git grep $argv[1]
else
git rev-list --all | sed 's!$!:'"$argv[1]"'!' | xargs git grep "$argv[2]"
end
end