3 # This *has* to be done before keychain, at least on foreign distros
4 # set up Guix if we have such
5 export GUIX_PROFILE=$HOME/.config/guix/current
6 [ -e ${GUIX_PROFILE}/etc/profile ] && . ${GUIX_PROFILE}/etc/profile
8 # pull in keys, if installed
9 if [ -x "$(which keychain 2>/dev/null)" ]; then
11 *i*) keychain --agents "gpg,ssh" --inherit any-once --ignore-missing id_rsa id_ed25519
14 [ -f ~/.keychain/$host-sh ] && . ~/.keychain/$host-sh
15 [ -f ~/.keychain/$host-sh-gpg ] && . ~/.keychain/$host-sh-gpg
17 # source environment from .profile not form .rc
19 # Oh joy, lets find out what shell we are in.
20 # At the moment, it should only be bash or korn.
26 *ksh) ENV=$HOME/.kshrc; export ENV
27 #[ X"/usr/bin/ksh" == X"${SHELL}" ] && [ -x /bin/bash ] && exec SHELL=/bin/bash /bin/bash -i
29 *) # unknown shell, source .environment and hope for the best