mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
+ added separated xterm_color_ functions to be more flexible with color settings
This commit is contained in:
parent
ce4c4354bb
commit
127098fc50
1 changed files with 8 additions and 0 deletions
|
|
@ -34,6 +34,14 @@ function xterm_color() {
|
|||
echo -e "\033[38;5;$1m$2\033[0m"
|
||||
}
|
||||
|
||||
function xterm_color_open() {
|
||||
echo -e "\033[38;5;$1m"
|
||||
}
|
||||
|
||||
function xterm_color_reset() {
|
||||
echo -e "\033[0m"
|
||||
}
|
||||
|
||||
autoload -U add-zsh-hook
|
||||
add-zsh-hook precmd omz_termsupport_precmd
|
||||
add-zsh-hook preexec omz_termsupport_preexec
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue