mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-06 10:05:28 +08:00
4 lines
117 B
Fish
4 lines
117 B
Fish
function prompt_hostname --description 'short hostname for the prompt'
|
|
string replace -r "\..*" "" $hostname
|
|
end
|