From dc70f80c56970957b33db6ed1212581dcad2196c Mon Sep 17 00:00:00 2001 From: A Farzat Date: Sun, 18 Feb 2024 01:20:28 +0900 Subject: Add zshrc and init file for zi --- .zshrc | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .zshrc (limited to '.zshrc') diff --git a/.zshrc b/.zshrc new file mode 100644 index 0000000..4ab1297 --- /dev/null +++ b/.zshrc @@ -0,0 +1,41 @@ +typeset -A ZI +ZI[HOME_DIR]="${FFILES:-${XDG_CACHE_DIR:-$HOME/.cache}}/zi" +source "$ZDOTDIR/zi.init.zsh" && zzinit + +# Load all of your early custom configurations. +function { +local config_file +for config_file ("$ZDOTDIR"/early/*.zsh(N)); do + source "$config_file" +done +} + +zi light "https://github.com/romkatv/powerlevel10k.git" +zi snippet "https://github.com/ohmyzsh/ohmyzsh/raw/master/plugins/vi-mode/vi-mode.plugin.zsh" +zi ice lucid wait has="fzf" +zi light "https://github.com/Aloxaf/fzf-tab.git" +zi ice blockf from="cgit.farzat.xyz" +zi load "dotfiles/my-zsh-completions" +zi ice lucid wait blockf +zi load "https://github.com/zsh-users/zsh-completions.git" +zi ice lucid wait +zi light "https://github.com/z-shell/F-Sy-H.git" +zi ice lucid wait as'completion' blockf has'man' +zi snippet "$ZDOTDIR/resources/completion/_man" + +# Load all of your custom configurations. +function { +local config_file +for config_file ("$ZDOTDIR"/halfway/*.zsh(N)); do + source "$config_file" +done +} + +# Load zsh completion. +autoload -Uz compinit +compinit +# Load completions saved by zi till now. +zi cdreplay -q + +# Load powerlevel10k configurations. +source "$ZDOTDIR/manual/p10k.zsh" -- cgit v1.2.3-70-g09d2