X-Git-Url: https://git.shemshak.org/~bandali/configs/blobdiff_plain/09b0be0bc8af645e6c9020f89da68e9cfc897d0a..c0ace3ce0e4fd5c53572c547252365a724110c03:/.profile diff --git a/.profile b/.profile index d726093..3b0071f 100644 --- a/.profile +++ b/.profile @@ -40,11 +40,28 @@ fi if [ -z "$IS_GUIX_SYSTEM" ]; then # if guix is installed if [ -x "$(command -v guix)" ]; then + SSL_CERT_DIR="$HOME/.guix-profile/etc/ssl/certs" + if [ -d "$SSL_CERT_DIR" -o -h "$SSL_CERT_DIR" ]; then + export SSL_CERT_DIR + export SSL_CERT_FILE="$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt" + else + printf "it seems you forgot to \`guix install nss-certs\'\n" + fi GUIX_PROFILE="$HOME/.guix-profile" . "$GUIX_PROFILE/etc/profile" fi fi +# start an ssh-agent (with guix's openssh) +if [ -z "$IS_GUIX_SYSTEM" ]; then + if ! pgrep -u "$USER" ssh-agent > /dev/null; then + ssh-agent > ~/.ssh-agent-thing + fi + if [[ ! "$SSH_AUTH_SOCK" ]]; then + eval "$(<~/.ssh-agent-thing)" + fi +fi + setxkbmap \ -layout us,ir \ -option ctrl:nocaps \