fix(history): escape displayed commands
This commit is contained in:
parent
24d660cfdd
commit
ecc3a396f4
1 changed files with 5 additions and 1 deletions
|
|
@ -537,7 +537,11 @@ _lp_dotmatrix_theme_prompt() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
local hist_most=$(history | tail -n ${DOTMATRIX_HISTORY_MOST_BACK} | awk '{print $4}' | sort | uniq --count | sort --numeric-sort --reverse | head -n 1 | awk '{print $2}')
|
local hist_most=$(history | tail -n ${DOTMATRIX_HISTORY_MOST_BACK} | awk '{print $4}' | sort | uniq --count | sort --numeric-sort --reverse | head -n 1 | awk '{print $2}')
|
||||||
inline_right="$d${hist_last}$I${hist_most}$b"
|
__lp_escape "$hist_last"
|
||||||
|
local hlast="$ret"
|
||||||
|
__lp_escape "$hist_most"
|
||||||
|
local hmost="$ret"
|
||||||
|
inline_right="$d${hlast}$I${hmost}$b"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
inline_right+="${DOTMATRIX_LINE}"
|
inline_right+="${DOTMATRIX_LINE}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue