diff options
author | 2019-08-05 13:40:21 -0400 | |
---|---|---|
committer | 2019-08-05 13:40:21 -0400 | |
commit | 47d195d98de6df54558a7764c54b7cb871cb9c84 (patch) | |
tree | cd3f1c9d3a21e9eb7534d80bec8ccbe383580638 /.bashrc | |
parent | 3487f1addf39e4f7f29fc9280652f88f8c684672 (diff) | |
download | configs-47d195d98de6df54558a7764c54b7cb871cb9c84.tar.gz configs-47d195d98de6df54558a7764c54b7cb871cb9c84.tar.xz configs-47d195d98de6df54558a7764c54b7cb871cb9c84.zip |
shell: more flexible per-host profile configuration
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -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 |