fish-shell/share/functions/prompt_hostname.fish

5 lines
127 B
Fish
Raw Normal View History

2016-10-24 06:02:14 +08:00
function prompt_hostname
# return the short hostname only by default (#4804)
string replace -r "\..*" "" $hostname
2016-10-24 05:56:18 +08:00
end