X-Git-Url: https://git.wh0rd.org/?p=home.git;a=blobdiff_plain;f=.bash_profile;h=4935e8fa483955ba71aa7b48d275bab598d30a1b;hp=0a8665f187f370db3464276f4b6c6f9ab5341c64;hb=53756ed8612888ef97a5c39a83e9ceaaed56ac91;hpb=5a4bb1f23faa147374e4856e8ffd7b8061cf4609 diff --git a/.bash_profile b/.bash_profile index 0a8665f..4935e8f 100644 --- a/.bash_profile +++ b/.bash_profile @@ -1,5 +1,9 @@ if type -P keychain >/dev/null ; then - keychain -q $(find ~/.ssh/ -type f '(' -name 'id_*' -a '!' -name '*.pub' ')') + ( + set -- $(find ~/.ssh/ -maxdepth 1 -type f '(' -name 'id_*' -a '!' -name '*.pub' ')') + chmod go-rwx "$@" + keychain -q "$@" & + ) fi [[ -f ~/.bashrc ]] && . ~/.bashrc -stty -tostop +stty -tostop 2>/dev/null