mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
3 lines
139 B
Fish
3 lines
139 B
Fish
function prompt_hostname --description 'Print the hostname, shortened for use in the prompt'
|
|
string replace -r "\..*" "" $hostname
|
|
end
|