2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-27 12:15:08 +00:00
fish-shell/share/functions/fish_title.fish
Fabian Homborg 4660be372a Only disable title in emacs "term"
There's more than one emacs terminal (for some reason), and term is
the most broken one and can't even handle a title.

Fixes .
2020-06-17 16:48:13 +02:00

6 lines
232 B
Fish

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