zsh/15-env.zsh

54 lines
1.3 KiB
Bash
Raw Normal View History

export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
export ZSH_CACHE_DIR="$XDG_CACHE_HOME/zsh"
export ZSH_COMPDUMP="$ZSH_CACHE_DIR/completions/dump"
export ZGEN_SOURCE="$ZSH_CACHE_DIR"
export ZGEN_SOURCE_BIN="$ZSH_CACHE_DIR/plugins"
export ZGEN_DIR="$ZSH_CACHE_DIR/zgenom"
2021-11-06 17:47:14 +00:00
if ps $PPID | grep mc; then
export ZSH_IS_SUBSHELL=1
fi
ZPFX=$ZGEN_DIR/polaris
DISABLE_AUTO_UPDATE=true
# PATH
for P in \
"$HOME/.vim/plugged/vim-superman/bin" \
"$HOME/bin" \
"$HOME/.local/bin"
do
if [[ -d "${P}" ]]; then
export PATH="${P}:${PATH}"
fi
done
2019-01-09 13:47:47 +00:00
# Удалить дубликаты в PATH
typeset -U PATH
export GNUPGHOME="$XDG_CONFIG_HOME/gnupg"
export SVDIR="$HOME/sv"
2020-03-27 18:05:39 +00:00
# Настройка uncrustify
2019-08-20 14:57:06 +00:00
UNCRUSTIFY_CONFIG="${XDG_CONFIG_HOME}/uncrustify/default.cfg"
[ -e "${UNCRUSTIFY_CONFIG}" ] && export UNCRUSTIFY_CONFIG
2020-11-28 11:44:16 +00:00
# Настройка Intel Studio
if [ ! -z ${ENABLE_INTEL_STUDIO+x} ]; then
#export COMPILERVARS_ARCHITECTURE=intel64
#export COMPILERVARS_PLATFORM=linux
#/opt/intel/bin/iccvars.sh
INTEL_VARS=( /opt/intel/advisor/advixe-vars.sh
/opt/intel/inspector/inspxe-vars.sh
/opt/intel/vtune_profiler/vtune-vars.sh )
for f in ${INTEL_VARS[*]}; do
[ -e "$f" ] && source "$f" > /dev/null
done
fi