logoalt Hacker News

Zizizizzyesterday at 6:47 AM0 repliesview on HN

This is the .zshrc file I have in my dotfiles.

It auto installs everything if you don't have it. Starts effectively instantly.

External dependencies (or remove their line at the bottom)

- [Mise](https://mise.jdx.dev/) fast asdf, runner, and direnv replacement

- [oxide](https://github.com/ajeetdsouza/zoxide) smart and fast cd replacement

-[atuin](https://atuin.sh/) ctrl + r and shell history finder

- [fzf](https://github.com/junegunn/fzf) fuzzy finder

``` # Plugin Manager

declare -A ZINIT ZINIT[NO_ALIASES]=1 ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git" [ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)" [ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME" source "${ZINIT_HOME}/zinit.zsh"

autoload -Uz compinit; compinit

# Plugins zinit light Aloxaf/fzf-tab zstyle ':fzf-tab:' use-fzf-default-opts yes zinit light zdharma-continuum/fast-syntax-highlighting zinit light zsh-users/zsh-autosuggestions

# Starship zinit ice as"command" from"gh-r" \ atclone"./starship init zsh > init.zsh; ./starship completions zsh > _starship" \ atpull"%atclone" src"init.zsh" zinit light starship/starship

zstyle ':fzf-tab:complete:' fzf-bindings 'shift-tab:toggle' zstyle ':fzf-tab:' switch-group ',' '.' zstyle ':fzf-tab:' continuous-trigger '`'

source <(fzf --zsh)

eval "$(mise activate zsh)" eval "$(zoxide init zsh)" eval "$(atuin init zsh --disable-up-arrow)" ```