function fish_title # emacs' "term" is basically the only term that can't handle it. if not set -q INSIDE_EMACS; or string match -vq '*,term:*' -- $INSIDE_EMACS echo (status current-command) (__fish_pwd) end end