mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
* fixed escaping issue with zsh completion system
This commit is contained in:
parent
d777109de7
commit
2164b3a169
1 changed files with 3 additions and 3 deletions
|
|
@ -31,15 +31,15 @@ function omz_termsupport_preexec {
|
|||
# Prints given 2nd argument with xterm color code of 1st argument
|
||||
# see http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html for color codes
|
||||
function xterm_color() {
|
||||
echo -e "\033[38;5;$1m$2\033[0m"
|
||||
echo -e "%{\033[38;5;$1m%}$2%{\033[0m%}"
|
||||
}
|
||||
|
||||
function xterm_color_open() {
|
||||
echo -e "\033[38;5;$1m"
|
||||
echo -e "%{\033[38;5;$1m%}"
|
||||
}
|
||||
|
||||
function xterm_color_reset() {
|
||||
echo -e "\033[0m"
|
||||
echo -e "%{\033[0m%}"
|
||||
}
|
||||
|
||||
autoload -U add-zsh-hook
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue