fish/functions/sponge_filter_failed.fish 276 B raw
1
function sponge_filter_failed \
2
  --argument-names command exit_code previously_in_history
3
4
  if test $previously_in_history = true -a $sponge_allow_previously_successful = true
5
    return 1
6
  end
7
8
  if contains $exit_code $sponge_successful_exit_codes
9
    return 1
10
  end
11
end