]> git.r.bdr.sh - rbdr/dotfiles/blobdiff - bash_profile
Add vim-json bundle
[rbdr/dotfiles] / bash_profile
index ab591e35363978eef91b31749cb9d525a910c936..df81cbe677a17a3d97cf70e5e4eba190a0150dce 100644 (file)
@@ -8,16 +8,16 @@ export TERM=screen-256color
 
 #git function
 function _set_git_envar_info() {
 
 #git function
 function _set_git_envar_info() {
-    GIT_BRANCH=""
+  GIT_BRANCH=""
        GIT_PREFIX=""
        GIT_PREFIX=""
-    GIT_STATE=""
+  GIT_STATE=""
        CHECK_SHIT="lol"
  RVM_COMMAND=$(rvm-prompt)
  if [[ $RVM_COMMAND == "" ]]
  then
    RVM_COMMAND="system"
  fi
        CHECK_SHIT="lol"
  RVM_COMMAND=$(rvm-prompt)
  if [[ $RVM_COMMAND == "" ]]
  then
    RVM_COMMAND="system"
  fi
-    if [[ $(which git 2> /dev/null) ]]
+    if [ -f `which git` ];
     then
         local STATUS
         STATUS=$(git status 2>/dev/null)
     then
         local STATUS
         STATUS=$(git status 2>/dev/null)