mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-22 08:51:53 +08:00

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 #7122.
7 lines
232 B
Fish
7 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
|