fish-shell/share/functions/prompt_hostname.fish

4 lines
117 B
Fish
Raw Normal View History

function prompt_hostname --description 'short hostname for the prompt'
string replace -r "\..*" "" $hostname
2016-10-24 05:56:18 +08:00
end