2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-29 13:23:33 +00:00
fish-shell/share/functions/prompt_hostname.fish
2021-12-04 10:37:49 +01:00

3 lines
139 B
Fish

function prompt_hostname --description 'Print the hostname, shortened for use in the prompt'
string replace -r "\..*" "" $hostname
end