]> Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - .bash_profile
.bash_profile: Support "keychain"
[dotfiles.git] / .bash_profile
1 # ~/.bash_profile: executed by bash(1) for login shells.
2
3 umask 022
4 if [ -f ~/.bashrc ]; then
5 source ~/.bashrc
6 fi
7
8 # keychain
9 keychain="$(type -P keychain)"
10 test -n "$keychain" && {
11 if [ -f ~/.ssh/id_dsa ]; then
12 eval `$keychain -q ~/.ssh/id_dsa`
13 source ~/.keychain/`hostname`-sh > /dev/null
14 fi
15 }
16 unset keychain