From d5bf3663f24ae933d1880378eebc36bc2b05a9e8 Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Sat, 3 Apr 2021 02:03:10 -0500 Subject: [PATCH] I tried to prettify the code and indented the prompt variable (that spanned multiple lines...) this messed the prompt up. Have come up with a different solution for a prompt with a newline in it. --- zsh/.zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 9d29970..4dbc717 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -15,6 +15,7 @@ #set important shell variables #fancy way of testing if a command exists (($+command[ruby])) && export PATH="$PATH:$(ruby -e 'puts Gem.user_dir' 2> /dev/null)/bin" + #test that these nonstandard paths exist before adding to PATH. testPath="$HOME/.local/bin" [ -f $testPath ] && export PATH="$PATH:$testPath" testPath="$HOME/scripts" @@ -86,8 +87,7 @@ RPROMPT= #on the top line, show a whole bunch of info. botton line should be as minimal as possilbe (just a single char to input next to...) - PROMPT='%F{cyan}[%n@%m]%f%F{red}├────┤%f${vcs_info_msg_0_} - »' + PROMPT=$'%F{cyan}[%n@%m]%f%F{red}├────┤%f${vcs_info_msg_0_}\n»' #show dots while waiting for tab-completion expand-or-complete-with-dots() {