docs: add fish shell syntax to SSH integration tip
- SHA
046bc1526c8480be3d2607abfefef56d1af28a4e- Parents
-
c55d684 - Tree
a3616da
046bc15
046bc1526c8480be3d2607abfefef56d1af28a4ec55d684
a3616da| Status | File | + | - |
|---|---|---|---|
| M |
src/accounts.c
|
2 | 1 |
src/accounts.cmodified@@ -275,7 +275,8 @@ int accounts_switch(gitswitch_ctx_t *ctx, const char *identifier) { | ||
| 275 | 275 | const char *runtime_dir = getenv("XDG_RUNTIME_DIR"); |
| 276 | 276 | if (runtime_dir) { |
| 277 | 277 | 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); | |
| 279 | 280 | } |
| 280 | 281 | } |
| 281 | 282 | |