From d348eb663f99798657edf2a7b6d8196070c7740e Mon Sep 17 00:00:00 2001 From: Vladislav Doster Date: Sat, 14 Jan 2023 03:38:03 -0600 Subject: [PATCH] fix: .zshrc logging Signed-off-by: Vladislav Doster --- zsh/.config/zsh/.zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 810cc08b..51ac36e0 100755 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -30,7 +30,7 @@ done # +──────────────+ # │ SETUP EDITOR │ # +──────────────+ -_log() { [[ $- == *i* ]] && print -P "%F{white}[INFO]%f %F{cyan}${1}%f ⮕ %F{green}${2}%f"; } +_log() { [[ $- == *i* ]] && print -P "%F{green}==>%f %F{white}${1} ⮕ ${2}%f"; } if has nvim && { nvim --headless --noplugin -c ':qall' }; then EDITOR="nvim" else @@ -45,6 +45,7 @@ for i (v vi vim); do alias $i="$EDITOR"; done typeset -g zle_highlight=(region:bg=black) # Highlight the background of the text when selecting. bindkey -M menuselect 'h' vi-backward-char; bindkey -M menuselect 'k' vi-up-line-or-history bindkey -M menuselect 'l' vi-forward-char; bindkey -M menuselect 'j' vi-down-line-or-history; +bindkey " " magic-space # +──────────────────────+ # │ Changing Directories │ # +──────────────────────+