fish-shell/share/functions/prompt_hostname.fish
2022-01-22 20:06:37 -08:00

4 lines
117 B
Fish

function prompt_hostname --description 'short hostname for the prompt'
string replace -r "\..*" "" $hostname
end