source ~/.bashrc
fi
+# Set mintty color-palette
+if [ "$UNAME" = "Cygwin" ]; then
+ source ~/.mintty/colors/solarized-ansi.sh
+fi
+
# keychain
-keychain="$(type -P keychain)"
-test -n "$keychain" && {
- if [ -f ~/.ssh/id_dsa ]; then
- eval `$keychain -q ~/.ssh/id_dsa`
+keychain=$(type -P keychain)
+test -n "$keychain" && \
+ test -z "$SUDO_USER" && {
+ if [ -f ~/.ssh/id_rsa ]; then
+ eval `$keychain -q ~/.ssh/id_rsa`
source ~/.keychain/`hostname`-sh > /dev/null
fi
}
unset keychain
+
+# rbenv
+rbenv=$(type -P rbenv)
+test -n "$rbenv" && eval "$(rbenv init -)"
+unset rbenv