summaryrefslogtreecommitdiffstats
path: root/.bashrc
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-08-05 13:40:21 -0400
committerAmin Bandali <bandali@gnu.org>2019-08-05 13:40:21 -0400
commit47d195d98de6df54558a7764c54b7cb871cb9c84 (patch)
treecd3f1c9d3a21e9eb7534d80bec8ccbe383580638 /.bashrc
parent3487f1addf39e4f7f29fc9280652f88f8c684672 (diff)
downloadconfigs-47d195d98de6df54558a7764c54b7cb871cb9c84.tar.gz
configs-47d195d98de6df54558a7764c54b7cb871cb9c84.tar.xz
configs-47d195d98de6df54558a7764c54b7cb871cb9c84.zip
shell: more flexible per-host profile configuration
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc16
1 files changed, 7 insertions, 9 deletions
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