fix(nu): crash in the user propt
This commit is contained in:
parent
a8dfb8fd79
commit
7b3ed93c0c
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@
|
||||||
# The format of the prompt is: username@hostname:current_path
|
# The format of the prompt is: username@hostname:current_path
|
||||||
def create_left_prompt [] {
|
def create_left_prompt [] {
|
||||||
let username = $env.USER
|
let username = $env.USER
|
||||||
let hostname = $env.HOSTNAME | str downcase
|
let hostname = (sys host | get hostname) | str downcase # $env.HOSTNAME | str downcase
|
||||||
|
|
||||||
let formatted_path = $env.PWD
|
let formatted_path = $env.PWD
|
||||||
| str replace $env.HOME '~'
|
| str replace $env.HOME '~'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue