# --- # @author jianqun.me # @updated 2025-07-17 # --- # --- # Execute Zsh Startup File # --- if [ -n "$ZSH_VERSION" ] && [ -f "${HOME}/.zshrc" ]; then source "${HOME}/.zshrc" fi # --- # Setting Environment Variables # --- if [ -d "${HOME}/.local/bin" ]; then export PATH="${HOME}/.local/bin:${PATH}" fi if [ -z "$SSH_AUTH_SOCK" ] && [ -S "${XDG_RUNTIME_DIR}/ssh-agent.sock" ]; then export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.sock" fi if [ -x "$(command -v fzf)" ]; then export FZF_DEFAULT_OPTS="--height=14 --layout=reverse-list --border=rounded --info=right --tabstop=2" fi if [ -x "$(command -v nvim)" ]; then export EDITOR="nvim -u ${HOME}/.config/nvim/init.lua" export VISUAL="nvim -u ${HOME}/.config/nvim/init.lua" else export EDITOR="vi" export VISUAL="vi" fi export PAGER="less"