mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 09:20:10 +08:00
4 lines
139 B
Fish
4 lines
139 B
Fish
function prompt_hostname --description 'Print the hostname, shortened for use in the prompt'
|
|
string replace -r "\..*" "" $hostname
|
|
end
|