mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 19:32:43 +00:00
9 lines
221 B
Fish
9 lines
221 B
Fish
function fish_title
|
|
# Show a short hostname over SSH, otherwise just the current directory.
|
|
if set -q SSH_TTY
|
|
echo (prompt_hostname | string sub -l 10):(prompt_pwd)
|
|
else
|
|
prompt_pwd
|
|
end
|
|
end
|