2023-10-06 15:47:04 +00:00
|
|
|
# shellcheck shell=sh
|
2023-04-15 23:01:04 +00:00
|
|
|
# >>> conda initialize >>>
|
|
|
|
# !! Contents within this block are managed by 'conda init' !!
|
2023-10-06 15:47:04 +00:00
|
|
|
__conda_setup="$($HOME/miniconda3/bin/conda shell.$SH 'hook' 2> /dev/null)"
|
2023-04-15 23:01:04 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
eval "$__conda_setup"
|
|
|
|
else
|
|
|
|
if [ -f "$HOME/miniconda3/etc/profile.d/conda.sh" ]; then
|
|
|
|
. "$HOME/miniconda3/etc/profile.d/conda.sh"
|
|
|
|
else
|
|
|
|
export PATH="$HOME/miniconda3/bin:$PATH"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
unset __conda_setup
|
2023-04-15 23:01:42 +00:00
|
|
|
|
|
|
|
if [ -f "$HOME/miniconda3/etc/profile.d/mamba.sh" ]; then
|
|
|
|
. "$HOME/miniconda3/etc/profile.d/mamba.sh"
|
|
|
|
fi
|
2023-04-15 23:01:04 +00:00
|
|
|
# <<< conda initialize <<<
|
|
|
|
|
2023-04-15 23:03:24 +00:00
|
|
|
{{- if lookPath "direnv" }}
|
2023-10-06 15:47:04 +00:00
|
|
|
eval "$(direnv hook $SH)"
|
2023-04-15 23:03:24 +00:00
|
|
|
{{- end }}
|
|
|
|
|
2023-03-02 18:44:20 +00:00
|
|
|
if [ -f $HOME/.ion/bin/ion ]; then
|
|
|
|
export PATH="$HOME/.ion/bin/ion:$PATH"
|
2023-03-02 18:46:05 +00:00
|
|
|
export FPATH="$HOME/.ion/completions:$FPATH"
|
2023-03-02 18:44:20 +00:00
|
|
|
fi
|
|
|
|
|
2023-04-15 23:12:14 +00:00
|
|
|
# Import GNU parallel
|
2023-10-06 15:47:04 +00:00
|
|
|
if [ $(command -v env_parallel.$SH) ]; then
|
|
|
|
source $(which env_parallel.$SH)
|
2023-04-15 23:12:14 +00:00
|
|
|
fi
|
|
|
|
|
2023-03-02 18:42:41 +00:00
|
|
|
{{- if eq .machinetype "workstation" }}
|
|
|
|
export GPG_TTY="$(tty)"
|
|
|
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
|
|
|
gpgconf --launch gpg-agent
|
|
|
|
{{- end }}
|