# Set the directory we want to store zinit and plugins 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" fi # Source/Load zinit source "${ZINIT_HOME}/zinit.zsh" # Add in zsh plugins zinit light zsh-users/zsh-syntax-highlighting zinit light zsh-users/zsh-completions zinit light zsh-users/zsh-autosuggestions zinit light Aloxaf/fzf-tab zinit ice wait"0b" lucid atload'bindkey "$terminfo[kcuu1]" history-substring-search-up; bindkey "$terminfo[kcud1]" history-substring-search-down' zinit light zsh-users/zsh-history-substring-search bindkey '^[[A' history-substring-search-up bindkey '^[[B' history-substring-search-down bindkey "^[[3~" delete-char zinit ice lucid wait'0' zinit light joshskidmore/zsh-fzf-history-search # Add in OMZ plgins zinit snippet OMZP::git zinit snippet OMZP::sudo zinit snippet OMZP::command-not-found # Load completions autoload -U compinit && compinit zinit cdreplay -q # Initialize oh-my-posh export PATH=$PATH:/home/rushil/.local/bin eval "$(oh-my-posh init zsh -c /home/rushil/.zen.toml)" # Keybinds (emacs mode) bindkey -e bindkey "^[[1;5C" forward-word bindkey "^[[1;5D" backward-word # History HISTFILE=5000 HISTFILE=~/.zsh_history SAVEHIST=$HISTSIZE HISTDUP=erase setopt appendhistory setopt sharehistory setopt hist_ignore_space setopt hist_ignore_all_dups setopt hist_save_no_dups setopt hist_ignore_dups setopt hist_find_no_dups # Completion styling zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" zstyle ':completion:*' menu no zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls --color $realpath' # Aliases alias ls='ls --color' alias ssh="kitten ssh" # Shell integrations [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh # Additional programs # export PATH=$HOME/.yarn/bin:$PATH # export PATH="$HOME/.pyenv/bin:$PATH" # eval "$(pyenv init -)" # eval "$(pyenv virtualenv-init -)" export PATH=$PATH:/home/rushil/.spicetify autoload bashcompinit bashcompinit source "/home/rushil/.local/share/bash-completion/completions/am" # bun completions [ -s "/home/rushil/.bun/_bun" ] && source "/home/rushil/.bun/_bun" # bun export BUN_INSTALL="$HOME/.bun" export PATH="$BUN_INSTALL/bin:$PATH"