mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-31 07:04:12 +00:00 
			
		
		
		
	Remove zsh instant mode log with -f (#854)
In some setups, rm might default to interactive promt. This change adds the -f parameter to force remove the instant mode log on exit to avoid an interactive prompt. ``` ~  rm: remove regular file '/tmp/user/1000/thefuck-script-log-bbb81260140c4b3fa18bf2097f15bd77'? ```
This commit is contained in:
		
				
					committed by
					
						 Vladimir Iakovlev
						Vladimir Iakovlev
					
				
			
			
				
	
			
			
			
						parent
						
							b08aec02f5
						
					
				
				
					commit
					b5436a2c47
				
			| @@ -52,7 +52,7 @@ class Zsh(Generic): | |||||||
|                 export THEFUCK_INSTANT_MODE=True; |                 export THEFUCK_INSTANT_MODE=True; | ||||||
|                 export THEFUCK_OUTPUT_LOG={log}; |                 export THEFUCK_OUTPUT_LOG={log}; | ||||||
|                 thefuck --shell-logger {log}; |                 thefuck --shell-logger {log}; | ||||||
|                 rm {log}; |                 rm -f {log}; | ||||||
|                 exit |                 exit | ||||||
|             '''.format(log=log_path) |             '''.format(log=log_path) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user