same issue because of my fish framework, here's my solution
the problem is here (in ~/.config/fish/config.fish)
## Starship prompt
if status --is-interactive
source ("/usr/bin/starship" init fish --print-full-init | psub)
end
and here's the solution once comment these lines the fish works fine
## Starship prompt
# if status --is-interactive
# source ("/usr/bin/starship" init fish --print-full-init | psub)
# end
then you can remove the theme or remove oh my fish