tenseleyflow/gitswitch / 046bc15

Browse files

docs: add fish shell syntax to SSH integration tip

Authored by espadonne
SHA
046bc1526c8480be3d2607abfefef56d1af28a4e
Parents
c55d684
Tree
a3616da

1 changed file

StatusFile+-
M src/accounts.c 2 1
src/accounts.cmodified
@@ -275,7 +275,8 @@ int accounts_switch(gitswitch_ctx_t *ctx, const char *identifier) {
275275
         const char *runtime_dir = getenv("XDG_RUNTIME_DIR");
276276
         if (runtime_dir) {
277277
             printf("\n  Tip: Add to your shell rc for persistent SSH:\n");
278
-            printf("       export SSH_AUTH_SOCK=%s/gitswitch-ssh/current.sock\n", runtime_dir);
278
+            printf("    bash/zsh: export SSH_AUTH_SOCK=%s/gitswitch-ssh/current.sock\n", runtime_dir);
279
+            printf("    fish:     set -gx SSH_AUTH_SOCK %s/gitswitch-ssh/current.sock\n", runtime_dir);
279280
         }
280281
     }
281282