Skip to content

Commit 366c7ca

Browse files
committed
fixed ssh-agent issue
1 parent bcf9bf3 commit 366c7ca

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

dotfiles/sh_config.d/40.ssh-agent.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ function start_agent {
1717
ssh-add -A 2>/dev/null
1818
[ -t 0 ] && echo -e "$ICON_INFO Adding ssh identities found in keychain to ssh-agent."
1919
;;
20-
windows)
21-
[ -t 0 ] && echo -e "$ICON_INFO Adding ssh identities to ssh-agent: "
22-
ssh-add
20+
windows | linux-server | linux | linux-virtual)
21+
[ -t 0 ] && echo -e "$ICON_INFO Adding ssh identities to ssh-agent"
22+
ssh-add 2>/dev/null
2323
;;
2424
linux-rpi | root) ;;
2525

0 commit comments

Comments
 (0)