dotfiles/.zshrc
Devin Haska 8ecd9562d1 feat: add custom zsh config
this is to allow for platform-specific configuration that is not tracked
by version history
2025-05-27 12:22:40 -07:00

22 lines
721 B
Bash

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"
zinit light Aloxaf/fzf-tab
zinit light zsh-users/zsh-syntax-highlighting
zinit light zsh-users/zsh-autosuggestions
zicompinit; zicdreplay
source <(fzf --zsh)
if [ "$TERM_PROGRAM" != "Apple_Terminal" ]; then
eval "$(oh-my-posh init zsh --config $HOME/.config/ohmyposh/config.toml)"
fi
# Platform-specific configuration lives inside .zshcustom.
# The file is ignored by the dotfiles git repo.
if [ -f $HOME/.zshcustom ]; then
source $HOME/.zshcustom
fi