mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-19 02:02:32 +01:00
fix: quote % in box_name prompt functions
This commit is contained in:
parent
43be5ea321
commit
a9d57eb2ee
3 changed files with 9 additions and 4 deletions
|
|
@ -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)'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue