mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
3 lines
117 B
Fish
3 lines
117 B
Fish
function prompt_hostname --description 'short hostname for the prompt'
|
|
string replace -r "\..*" "" $hostname
|
|
end
|