From b90dba8a082f45bfcb75e6b1707c49c32181f0dd Mon Sep 17 00:00:00 2001 From: foo-dogsquared Date: Fri, 27 Dec 2019 12:09:25 +0800 Subject: [PATCH] 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. --- xorg/.Xresources | 2 +- zsh/.zshrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xorg/.Xresources b/xorg/.Xresources index 07e2636..8045f0a 100644 --- a/xorg/.Xresources +++ b/xorg/.Xresources @@ -1,5 +1,5 @@ *foreground: #e5e3e3 -*background: #eeeeee +*background: #221e21 *cursor: #e5e3e3 *color0: #0c080b diff --git a/zsh/.zshrc b/zsh/.zshrc index 9631b1c..8818c95 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -12,7 +12,7 @@ precmd_functions+=( precmd_vcs_info ) setopt prompt_subst zstyle ':vcs_info:git:*' formats '(%b)' 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. HISTSIZE=1000