14 lines
525 B
Bash
14 lines
525 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 zsh-users/zsh-syntax-highlighting
|
|
zinit light zsh-users/zsh-autosuggestions
|
|
zinit light Aloxaf/fzf-tab
|
|
|
|
source <(fzf --zsh)
|
|
|
|
if [ "$TERM_PROGRAM" != "Apple_Terminal" ]; then
|
|
eval "$(oh-my-posh init zsh --config $HOME/.config/ohmyposh/config.toml)"
|
|
fi
|