mirror of
				https://github.com/wting/autojump
				synced 2025-06-13 12:54:07 +00:00 
			
		
		
		
	Adding g to zsh
This commit is contained in:
		
							parent
							
								
									dc2d7c10c4
								
							
						
					
					
						commit
						e42645df00
					
				@ -123,3 +123,14 @@ jco() {
 | 
			
		||||
        jo $(pwd) ${@}
 | 
			
		||||
    fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# Jump around a git repo
 | 
			
		||||
g() {
 | 
			
		||||
    if [[ ${1} == -* ]] && [[ ${1} != "--" ]]; then
 | 
			
		||||
        autojump ${@}
 | 
			
		||||
        return
 | 
			
		||||
    else
 | 
			
		||||
        REPO_ROOT=`git rev-parse --show-toplevel`
 | 
			
		||||
        j "$REPO_ROOT" ${@}
 | 
			
		||||
    fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user