Revise the zsh and xorg config

The zsh prompt has been updated to fix the lack of line wrapping in the zsh shell. The proposed solution at https://github.com/ohmyzsh/ohmyzsh/issues/2314 [which is delimiting the color codes] worked and now the prompt properly wraps lines.
This commit is contained in:
foo-dogsquared 2019-12-27 12:09:25 +08:00
parent 50b6bee5dc
commit b90dba8a08
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
*foreground: #e5e3e3 *foreground: #e5e3e3
*background: #eeeeee *background: #221e21
*cursor: #e5e3e3 *cursor: #e5e3e3
*color0: #0c080b *color0: #0c080b

View File

@ -12,7 +12,7 @@ precmd_functions+=( precmd_vcs_info )
setopt prompt_subst setopt prompt_subst
zstyle ':vcs_info:git:*' formats '(%b)' zstyle ':vcs_info:git:*' formats '(%b)'
autoload -U colors && colors autoload -U colors && colors
PS1="%F${fg[white]}%(0?.√.%?) %B%{$fg[magenta]%}%1~%{$reset_color%} \$vcs_info_msg_0_ $%f%b " PS1="%F%{${fg[white]}%}%(0?.√.%?) %B%{$fg[magenta]%}%1~%{$reset_color%} \$vcs_info_msg_0_ $%f%b "
# Configuring the command history. # Configuring the command history.
HISTSIZE=1000 HISTSIZE=1000