mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-30 14:24:35 +08:00
b42b562d06
Hat-tip: @zx8. Closes #4804.
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
|