Fix hostname

This commit is contained in:
Jeffrey Serio 2024-03-18 21:24:12 -05:00
parent 9fe612912f
commit c8eceb6841

2
env.nu
View File

@ -51,7 +51,7 @@ def is-container [] {
}
def create_user_host [] {
let user_host = (ansi red) + (whoami) + (ansi reset) + '@' + (ansi blue) + (hostname) + (ansi reset)
let user_host = (ansi red) + (whoami) + (ansi reset) + '@' + (ansi blue) + (sys | get host.hostname) + (ansi reset)
let container_segment = (ansi green_bold) + "⬢ " + (ansi reset)
let user_host_segment = (if (is-container) { ($container_segment + $user_host) | str join } else { $user_host })