From dd88548e55fc05f2b9dff855143e87141690b42a Mon Sep 17 00:00:00 2001 From: ZachIR Date: Thu, 23 Jan 2025 14:17:04 -0600 Subject: Fix zsh search bindkeys They used single quotes, but needed to be double quotes. --- zsh/zshrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'zsh/zshrc') diff --git a/zsh/zshrc b/zsh/zshrc index 0d6ecd5..4c633ee 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -61,12 +61,12 @@ if [ -n "$ZPLUG_INSTALLED" ]; then # zsh history substring search zplug "zsh-users/zsh-history-substring-search", as:plugin - bindkey '${key[Up]}' history-substring-search-up - bindkey '${key[Down]}' history-substring-search-down - bindkey -M vicmd '${key[Up]}' history-substring-search-up - bindkey -M vicmd '${key[Down]}' history-substring-search-down - bindkey -M vicmd 'k' history-substring-search-up - bindkey -M vicmd 'j' history-substring-search-down + bindkey "${key[Up]}" history-substring-search-up + bindkey "${key[Down]}" history-substring-search-down + bindkey -M vicmd "${key[Up]}" history-substring-search-up + bindkey -M vicmd "${key[Down]}" history-substring-search-down + bindkey -M vicmd "k" history-substring-search-up + bindkey -M vicmd "j" history-substring-search-down # zsh syntax highlighting zplug "zsh-users/zsh-syntax-highlighting", defer:2 -- cgit v1.2.3 From e3cde1579bbc9e07c0afc71084c9b5e83adf4ed7 Mon Sep 17 00:00:00 2001 From: ZachIR Date: Thu, 23 Jan 2025 14:19:01 -0600 Subject: Un-bold the zsh prompt (fixes issue in some terms) Namely cool-retro-term doesn't like bolded powerline symbols. --- zsh/zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zsh/zshrc') diff --git a/zsh/zshrc b/zsh/zshrc index 4c633ee..9acd42f 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -44,9 +44,9 @@ bindkey "${key[End]}" end-of-line bindkey "${key[PageUp]}" history-substring-search-up bindkey "${key[PageDown]}" history-substring-search-down -MYPROMPT=$'%B%S%F{002}[%n@%m]\UE0B2%F{015}%s%~%S%F{002}\UE0B0%#%s\UE0B0%f%k%b ' +MYPROMPT=$'%S%F{002}[%n@%m]\UE0B2%F{015}%s%~%S%F{002}\UE0B0%#%s\UE0B0%f ' function zle-line-init zle-keymap-select { - VIM_PROMPT=$'%B%S%F{012}[%n@%m]\UE0B2%F{015}%s%~%S%F{012}\UE0B0%#%s\UE0B0%f%k%b ' + VIM_PROMPT=$'%S%F{012}[%n@%m]\UE0B2%F{015}%s%~%S%F{012}\UE0B0%#%s\UE0B0%f ' PS1="${${KEYMAP/vicmd/$VIM_PROMPT}/main/$MYPROMPT}" zle reset-prompt } -- cgit v1.2.3