File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 11#  shellcheck shell=bash
22cite ' about-alias' 
3- about-alias ' git aliases from oh-my-zsh' 
3+ about-alias ' git aliases from oh-my-zsh (incompatible with regular git aliases option) ' 
44
5- #  We are not vendoring this, as we need to adapt it to bash :(
5+ if  [[ -n  $_bash_it_git_aliases_enabled  ]];  then 
6+ 	_log_error " git-omz aliases are incompatible with regular git aliases" 
7+ 	return 
8+ fi 
69
710#  MIT License
811
Original file line number Diff line number Diff line change 22cite ' about-alias' 
33about-alias ' common git abbreviations' 
44
5+ #  We can use this variable to make sure that we don't accidentally clash with git-zsh aliases
6+ _bash_it_git_aliases_enabled=true
7+ 
58alias  g=' git' 
69alias  get=' git' 
710
Original file line number Diff line number Diff line change @@ -39,7 +39,14 @@ function local_teardown {
3939
4040@test " search: git" 
4141  run _bash-it-search ' git' 
42-   assert_line -n 0 '       aliases:  git   gitsvn  ' 
42+ 
43+   assert_line -n 0 -p '       aliases:' 
44+   for  alias  in  ' git' ' gitsvn' ' git-omz' 
45+   do 
46+     echo  $alias 
47+     assert_line -n 0 -p $alias 
48+   done 
49+ 
4350  assert_line -n 1 -p '       plugins:' 
4451  for  plugin  in  " autojump" " git" " gitstatus" " git-subrepo" " jgitflow" " jump" 
4552  do 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments