diff .bash_profile @ 254:2bc70f7910fa

Let's set a sane default for the container on ChromeOS
author Steve Huston <huston@srhuston.net>
date Wed, 27 Mar 2024 23:27:48 -0400
parents b00e6b403896
children 857bf32fbaab
line wrap: on
line diff
--- a/.bash_profile	Wed Mar 27 18:39:22 2024 -0400
+++ b/.bash_profile	Wed Mar 27 23:27:48 2024 -0400
@@ -65,6 +65,13 @@
 fi
 hg status
 
+[[ $HOST == penguin && -z "$SSH_AUTH_SOCK" ]] && {
+  # We're probably on a ChromeOS container with no ssh-agent running yet, so
+  # let's start one and exit when it ends.
+  ssh-agent bash
+  exit
+}
+
 [[ $HOST == cake && "`tty`" == "/dev/tty1" ]] && {
   # We're on the Raspberry Pi
   export SDL_NOMOUSE=1