mirror of
				https://github.com/wting/autojump
				synced 2025-06-13 12:54:07 +00:00 
			
		
		
		
	Merge pull request #109 from shelhamer/homebrew_zsh
Add fpath update for homebrew installs
This commit is contained in:
		
						commit
						2bc5be61cc
					
				@ -33,6 +33,10 @@ if [[ -d ~/.autojump/ ]]; then
 | 
				
			|||||||
    path=(~/.autojump/bin $path)
 | 
					    path=(~/.autojump/bin $path)
 | 
				
			||||||
    fpath=(~/.autojump/functions/ $fpath)
 | 
					    fpath=(~/.autojump/functions/ $fpath)
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					# set fpath if necessary for homebrew installation
 | 
				
			||||||
 | 
					if [[ -n "`which brew`" && -d `brew --prefix`/share/zsh/functions ]]; then
 | 
				
			||||||
 | 
					    fpath=(`brew --prefix`/share/zsh/functions $fpath)
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function autojump_preexec() {
 | 
					function autojump_preexec() {
 | 
				
			||||||
    if [[ "${AUTOJUMP_KEEP_SYMLINKS}" == "1" ]]
 | 
					    if [[ "${AUTOJUMP_KEEP_SYMLINKS}" == "1" ]]
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user