2021-11-06 16:50:38 +00:00
|
|
|
# PATH
|
2022-01-15 14:56:23 +00:00
|
|
|
|
|
|
|
PATH="$(find $HOME/.gem/ruby -maxdepth 2 -name bin -type d | sort -r | tr '\n' ':')$PATH"
|
|
|
|
|
2021-11-06 16:50:38 +00:00
|
|
|
for P in \
|
|
|
|
"$HOME/bin" \
|
|
|
|
"$HOME/.local/bin"
|
|
|
|
do
|
|
|
|
if [[ -d "${P}" ]]; then
|
|
|
|
export PATH="${P}:${PATH}"
|
|
|
|
fi
|
|
|
|
done
|
2019-01-09 13:47:47 +00:00
|
|
|
|
2021-12-07 09:03:46 +00:00
|
|
|
# Отключаем некоторые плагины, если запуск в качестве подоболочки mc
|
|
|
|
# Bug: https://midnight-commander.org/ticket/4253
|
|
|
|
#if ps $PPID | grep mc; then
|
|
|
|
# export ZSH_MC_WORKAROUND=1
|
|
|
|
#fi
|
|
|
|
|
2020-01-09 10:20:00 +00:00
|
|
|
# Удалить дубликаты в PATH
|
|
|
|
typeset -U PATH
|
|
|
|
|
2021-11-06 16:50:38 +00:00
|
|
|
export GNUPGHOME="$XDG_CONFIG_HOME/gnupg"
|
|
|
|
export SVDIR="$HOME/sv"
|
2019-05-28 19:06:00 +00:00
|
|
|
|
2021-12-05 21:42:07 +00:00
|
|
|
# ASKPASS
|
|
|
|
if [ ! -z ${DISPLAY+x} ]; then
|
|
|
|
if command -v /usr/lib/openssh/gnome-ssh-askpass 2>&1 >/dev/null; then
|
|
|
|
export SSH_ASKPASS=/usr/lib/openssh/gnome-ssh-askpass
|
|
|
|
elif command -v /usr/bin/lxqt-openssh-askpass 2>&1 >/dev/null; then
|
|
|
|
export SSH_ASKPASS=/usr/bin/lxqt-openssh-askpass
|
|
|
|
elif command -v /usr/bin/ssh-askpass 2>&1 >/dev/null; then
|
|
|
|
export SSH_ASKPASS=/usr/bin/ssh-askpass
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
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
|
2018-11-17 17:02:20 +00:00
|
|
|
|