From 47d195d98de6df54558a7764c54b7cb871cb9c84 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Mon, 5 Aug 2019 13:40:21 -0400 Subject: shell: more flexible per-host profile configuration --- .bashrc | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index f93f6c9..e581cd3 100644 --- a/.bashrc +++ b/.bashrc @@ -69,13 +69,11 @@ aur() { cd ${1} } -# fzf -#include /usr/share/fzf/key-bindings.bash -#include /usr/share/fzf/completion.bash - -if ! pgrep -u "$USER" ssh-agent > /dev/null; then - ssh-agent > ~/.ssh-agent-thing -fi -if [[ ! "$SSH_AUTH_SOCK" ]]; then - eval "$(<~/.ssh-agent-thing)" +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 -- cgit v1.2.3-60-g2f50