mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +00:00
a3cb1e2dcd
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.
8 lines
423 B
Fish
8 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
|