mirror of
https://codeberg.org/hyperreal/nushell-config
synced 2024-11-01 16:53:12 +01:00
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 [] {
|
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 container_segment = (ansi green_bold) + "⬢ " + (ansi reset)
|
||||||
let user_host_segment = (if (is-container) { ($container_segment + $user_host) | str join } else { $user_host })
|
let user_host_segment = (if (is-container) { ($container_segment + $user_host) | str join } else { $user_host })
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user