# -*- shell-script -*- # Test if this is a GuixSD system. function guixsd() { return `test -d /run/current-system` } export -f guixsd # Test if this is my VHL workstation function vhl() { return `test $(hostname) == "7VWJD42"` } export -f vhl # Honor per-interactive-shell startup file if [ -f ~/.bashrc ]; then . ~/.bashrc; fi # Only configure the SSH agent if we're not in an SSH session with a # forwarded agent. if ! [ -n "$SSH_CLIENT" -a -n "$SSH_AUTH_SOCK" ] then export SSH_AUTH_SOCK="$HOME/.gnupg/S.gpg-agent.ssh" fi export EDITOR=emacsclient export GUIX_PROFILE="$HOME/.guix-profile" if [ -f $HOME/.guix-profile/etc/profile ] then source $HOME/.guix-profile/etc/profile fi # Guix #export GUIX_PACKAGE_PATH="$HOME/Code/guix-custom" # Extra configuration needed on non-GuixSD systems. if ! guixsd then export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale" fi # Extra configuration needed for work machine. if vhl then export PATH="$HOME/.chefdk/gem/ruby/2.1.0/bin:/opt/chefdk/bin:$HOME/.rbenv/bin:$PATH" export GIT_SSL_CAINFO=/etc/ssl/certs/ca-certificates.crt eval "$(rbenv init -)" fi export PATH="$HOME/.config/guix/current/bin${PATH:+:}$PATH"