mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-01-29 13:40:22 +01:00
Fix echo nothing if $SHORT_HOST doesn't exist.
This commit is contained in:
@@ -17,7 +17,7 @@ function prompt_char {
|
||||
}
|
||||
|
||||
function box_name {
|
||||
[ -f ~/.box-name ] && cat ~/.box-name || echo $SHORT_HOST || echo $HOST
|
||||
[ -f ~/.box-name ] && cat ~/.box-name || echo ${SHORT_HOST:-HOST}
|
||||
}
|
||||
|
||||
local ruby_env=''
|
||||
|
||||
Reference in New Issue
Block a user