Fix hostname
This commit is contained in:
parent
9fe612912f
commit
c8eceb6841
2
env.nu
2
env.nu
@ -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 })
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user