#!/usr/bin/env zsh # Core environment export EDITOR=nvim export VISUAL=nvim export PATH=$HOME/.local/bin:$PATH export HISTFILE="$HOME/.config/zsh/.zsh_history" export ZSH_CACHE_DIR=${XDG_CACHE_HOME:-$HOME/.cache}/zsh mkdir -p $ZSH_CACHE_DIR # Antigen source /usr/share/zsh/share/antigen.zsh # Load config files for config in aliases history completion key-bindings; do [[ -f ~/.config/zsh/plugins/$config.zsh ]] && source ~/.config/zsh/plugins/$config.zsh done # Plugins (work everywhere) antigen bundle zsh-users/zsh-autosuggestions antigen bundle Aloxaf/fzf-tab # Terminal-specific config if [[ $TERM != "linux" ]]; then [[ -f ~/.config/zsh/configs/terminal.zsh ]] && source ~/.config/zsh/configs/terminal.zsh else PROMPT='[%F{green}%n@%m%f %F{blue}%1~%f]%# ' fi # Apply antigen antigen apply # Plugin settings ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=8' ZSH_AUTOSUGGEST_STRATEGY=(history completion) # FZF integration [[ -f /usr/share/fzf/key-bindings.zsh ]] && source /usr/share/fzf/key-bindings.zsh [[ -f /usr/share/fzf/completion.zsh ]] && source /usr/share/fzf/completion.zsh export FZF_DEFAULT_OPTS="--height 40% --layout=reverse --border"