mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-31 07:04:12 +00:00 
			
		
		
		
	#682: Allow THEFUCK_INSTANT_MODE=False
				
					
				
			This commit is contained in:
		| @@ -29,7 +29,7 @@ class Bash(Generic): | |||||||
|                            if settings.alter_history else '')) |                            if settings.alter_history else '')) | ||||||
|  |  | ||||||
|     def instant_mode_alias(self, alias_name): |     def instant_mode_alias(self, alias_name): | ||||||
|         if os.environ.get('THEFUCK_INSTANT_MODE'): |         if os.environ.get('THEFUCK_INSTANT_MODE', '').lower() == 'true': | ||||||
|             return ''' |             return ''' | ||||||
|                 export PS1="{user_command_mark}$PS1"; |                 export PS1="{user_command_mark}$PS1"; | ||||||
|                 {app_alias} |                 {app_alias} | ||||||
|   | |||||||
| @@ -28,7 +28,7 @@ class Zsh(Generic): | |||||||
|                            if settings.alter_history else '')) |                            if settings.alter_history else '')) | ||||||
|  |  | ||||||
|     def instant_mode_alias(self, alias_name): |     def instant_mode_alias(self, alias_name): | ||||||
|         if os.environ.get('THEFUCK_INSTANT_MODE'): |         if os.environ.get('THEFUCK_INSTANT_MODE', '').lower() == 'true': | ||||||
|             return ''' |             return ''' | ||||||
|                 export PS1="{user_command_mark}$PS1"; |                 export PS1="{user_command_mark}$PS1"; | ||||||
|                 {app_alias} |                 {app_alias} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user