]> git.wh0rd.org - home.git/commitdiff
bash_profile: run keychain in the background
authorMike Frysinger <vapier@gentoo.org>
Mon, 25 Sep 2017 17:55:41 +0000 (13:55 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 25 Sep 2017 17:55:41 +0000 (13:55 -0400)
It causes a few hundred msec delay on login otherwise, at least under gLinux.

.bash_profile

index 75b8798cfd803f29b87bc9667485f31fa187c26a..4935e8fa483955ba71aa7b48d275bab598d30a1b 100644 (file)
@@ -2,7 +2,7 @@ if type -P keychain >/dev/null ; then
        (
        set -- $(find ~/.ssh/ -maxdepth 1 -type f '(' -name 'id_*' -a '!' -name '*.pub' ')')
        chmod go-rwx "$@"
-       keychain -q "$@"
+       keychain -q "$@" &
        )
 fi
 [[ -f ~/.bashrc ]] && . ~/.bashrc