dotfiles/.config/fish/functions/fish_should_add_to_history.fish

7 lines
189 B
Fish

function fish_should_add_to_history
string match -q ' *' -- $argv; and return 1
for cmd in ls clear
string match -qr "^$cmd" -- $argv; and return 1
end
return 0
end