From: Sergey Matveev Date: Tue, 15 Jun 2021 15:24:04 +0000 (+0300) Subject: Mouse selection friendly space-separated path in prompt X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=98d4fcc4837937453bd3cdccb2ae609f6b2f893c Mouse selection friendly space-separated path in prompt --- diff --git a/zsh/.zshrc b/zsh/.zshrc index 02a85db..df72c85 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -53,7 +53,7 @@ bindkey -M isearch "^[[B" history-incremental-pattern-search-forward function zle-line-init zle-keymap-select { mode_vi=${${KEYMAP/vicmd/+}/(main|viins)/-} [[ $timer ]] && timer_show=$(( $SECONDS - $timer )) - prompt="%2~|" + prompt="%2~ " prompt+="%U${timer_show}%u|" prompt+="%B%?%b" prompt+="${mode_vi}"