Skip to content

Commit

Permalink
zsh: 》Needed for dependent functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDufus committed Nov 8, 2024
1 parent 51373f9 commit 038bed4
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions roles/zsh/files/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 038bed4

Please sign in to comment.