From 038bed49e779c51cd903c3c640caf649ac1ccb6c Mon Sep 17 00:00:00 2001 From: TechDufus Date: Fri, 8 Nov 2024 16:00:33 -0600 Subject: [PATCH] =?UTF-8?q?zsh:=20=E3=80=8BNeeded=20for=20dependent=20func?= =?UTF-8?q?tions.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/zsh/files/.zshrc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/roles/zsh/files/.zshrc b/roles/zsh/files/.zshrc index 7bb2f192..263cd6f1 100644 --- a/roles/zsh/files/.zshrc +++ b/roles/zsh/files/.zshrc @@ -15,8 +15,8 @@ ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git" # Download Zinit, if it's not there yet if [ ! -d "$ZINIT_HOME" ]; then - mkdir -p "$(dirname $ZINIT_HOME)" - git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME" + mkdir -p "$(dirname $ZINIT_HOME)" + git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME" fi # Source/Load zinit @@ -32,7 +32,9 @@ zinit light zsh-users/zsh-autosuggestions zinit light Aloxaf/fzf-tab # Add in snippets -# zinit snippet OMZL::git.zsh +# Needed for loading next git.zsh without [_defer_async_git_register:4: command not found: _omz_register_handler errors] +zinit snippet OMZL::async_prompt.zsh +zinit snippet OMZL::git.zsh zinit snippet OMZP::git zinit snippet OMZP::sudo zinit snippet OMZP::aliases @@ -59,6 +61,9 @@ bindkey '^n' history-search-forward bindkey '^[w' kill-region bindkey '^ ' forward-word # auto-accept partial suggestion from zsh-autosuggestion +# Set vi mode (fixes HOME|END|DELETE etc..) +# set -o vi + # History HISTSIZE=10000 HISTFILE=~/.zsh_history