mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2024-05-11 05:55:17 +00:00 
			
		
		
		
	fix(plugins): cache thefuck aliases (#5522)
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							94ea7b4516
						
					
				
				
					commit
					a2e6a85bf3
				
			| @@ -5,7 +5,8 @@ if [[ -z $commands[thefuck] ]]; then | |||||||
| fi | fi | ||||||
|  |  | ||||||
| # Register alias | # Register alias | ||||||
| eval "$(thefuck --alias)" | [[ ! -a $ZSH_CACHE_DIR/thefuck ]] && thefuck --alias > $ZSH_CACHE_DIR/thefuck | ||||||
|  | source $ZSH_CACHE_DIR/thefuck | ||||||
|  |  | ||||||
| fuck-command-line() { | fuck-command-line() { | ||||||
|     local FUCK="$(THEFUCK_REQUIRE_CONFIRMATION=0 thefuck $(fc -ln -1 | tail -n 1) 2> /dev/null)" |     local FUCK="$(THEFUCK_REQUIRE_CONFIRMATION=0 thefuck $(fc -ln -1 | tail -n 1) 2> /dev/null)" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user