.vim/bundle: Update vim bundle submodules
[dotfiles.git] / .bash_profile
index 997404022d2d6f2df25a90b6d84be943e10b5534..a4e1782870f14d1e8df46076580cd5fdd945e0ca 100644 (file)
@@ -5,8 +5,22 @@ if [ -f ~/.bashrc ]; then
   source ~/.bashrc
 fi
 
-# keychain
-if [ -f ~/.ssh/id_dsa ]; then
-  /usr/bin/keychain -q ~/.ssh/id_dsa
-  source ~/.keychain/`hostname`-sh > /dev/null
+# 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_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