Files
dotfiles/config/shell/.config/zsh/conf.d/10-env.zsh
T
2026-07-27 02:53:24 +02:00

45 lines
770 B
Bash

# MANPAGER
if (( $+commands[bat] )); then
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
export MANROFFOPT=-c
fi
# Editor
for _uy_app in helix nvim vim vi nano; do
if (( $+commands[$_uy_app] )); then
export EDITOR=$_uy_app
export VISUAL=$_uy_app
break
fi
done
unset _uy_app
if (( $+commands[helix] )) && ! (( $+commands[hx] )); then
alias hx=helix
fi
# GPG
if (( $+commands[gpg] )); then
export GPG_TTY=$TTY
fi
# Catppuccin Mocha — autosuggestions color
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#6c7086"
# fnm
if (( $+commands[fnm] )); then
eval "$(fnm env --shell zsh --use-on-cd)"
fi
# bat
if (( $+commands[bat] )); then
export BAT_THEME="Catppuccin Mocha"
export BAT_STYLE="default,-numbers"
fi