mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-10 02:09:51 +00:00
fix: quote % in box_name prompt functions
This commit is contained in:
@@ -21,7 +21,9 @@ function prompt_char {
|
||||
}
|
||||
|
||||
function box_name {
|
||||
[ -f ~/.box-name ] && cat ~/.box-name || echo ${SHORT_HOST:-$HOST}
|
||||
local box="${SHORT_HOST:-$HOST}"
|
||||
[[ -f ~/.box-name ]] && box="$(< ~/.box-name)"
|
||||
echo "${box:gs/%/%%}"
|
||||
}
|
||||
|
||||
local ruby_env='$(ruby_prompt_info)'
|
||||
|
||||
Reference in New Issue
Block a user