fish-shell/share/functions/prompt_hostname.fish

5 lines
127 B
Fish
Raw Normal View History

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