fish-shell/share/functions/fish_title.fish
Mahmoud Al-Qudsi a3cb1e2dcd Fix setting terminal title after fg
The code to override the `(status current-command) was present`, but not
handled in either the default `fish_title` function or the fallback.

Closes #7444.
2020-11-28 00:56:10 -06:00

9 lines
423 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
# An override for the current command is passed as the first parameter.
# This is used by `fg` to show the true process name, among others.
echo (set -q argv[1] && echo $argv[1] || status current-command) (__fish_pwd)
end
end