For the version for fish version 2.1.0 you only need to edit ~ / .config / fish / functions / fish_title.fish
function fish_title
hostname
end
For version 1.23.1, this does not work. If directories do not exist, first create them:
mkdir -p ~ / .config / fish / functions /
source
share