mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-08 03:28:30 +08:00
5 lines
127 B
Fish
5 lines
127 B
Fish
function prompt_hostname
|
|
# return the short hostname only by default (#4804)
|
|
string replace -r "\..*" "" $hostname
|
|
end
|