mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 13:21:19 +08:00 
			
		
		
		
	feat(zoxide): add new plugin for zoxide (a smarter cd CLI tool) (#9950)
This commit is contained in:
		
							parent
							
								
									3ea66642e8
								
							
						
					
					
						commit
						36cc94f3dc
					
				
							
								
								
									
										1
									
								
								.github/CODEOWNERS
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.github/CODEOWNERS
									
									
									
									
										vendored
									
									
								
							@ -7,3 +7,4 @@ plugins/gitfast/                    @felipec
 | 
			
		||||
plugins/sdk/                        @rgoldberg
 | 
			
		||||
plugins/universalarchive/           @Konfekt
 | 
			
		||||
plugins/wp-cli/                     @joshmedeski
 | 
			
		||||
plugins/zoxide/                     @ajeetdsouza
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										14
									
								
								plugins/zoxide/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								plugins/zoxide/README.md
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,14 @@
 | 
			
		||||
# zoxide plugin
 | 
			
		||||
 | 
			
		||||
Initializes [zoxide](https://github.com/ajeetdsouza/zoxide), a smarter cd
 | 
			
		||||
command for your terminal.
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
To use it, add `zoxide` to the plugins array in your `.zshrc` file:
 | 
			
		||||
 | 
			
		||||
```zsh
 | 
			
		||||
plugins=(... zoxide)
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
**Note:** you have to [install zoxide](https://github.com/ajeetdsouza/zoxide#step-1-install-zoxide) first.
 | 
			
		||||
							
								
								
									
										5
									
								
								plugins/zoxide/zoxide.plugin.zsh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								plugins/zoxide/zoxide.plugin.zsh
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,5 @@
 | 
			
		||||
if (( $+commands[zoxide] )); then
 | 
			
		||||
  eval "$(zoxide init zsh)"
 | 
			
		||||
else
 | 
			
		||||
  echo '[oh-my-zsh] zoxide not found, please install it from https://github.com/ajeetdsouza/zoxide'
 | 
			
		||||
fi
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user