mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-11-04 09:02:08 +00:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					c88b0792b8 | ||
| 
						 | 
					06a89427e2 | 
							
								
								
									
										2
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								setup.py
									
									
									
									
									
								
							@@ -29,7 +29,7 @@ elif (3, 0) < version < (3, 3):
 | 
				
			|||||||
          ' ({}.{} detected).'.format(*version))
 | 
					          ' ({}.{} detected).'.format(*version))
 | 
				
			||||||
    sys.exit(-1)
 | 
					    sys.exit(-1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
VERSION = '3.17'
 | 
					VERSION = '3.18'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
install_requires = ['psutil', 'colorama', 'six', 'decorator']
 | 
					install_requires = ['psutil', 'colorama', 'six', 'decorator']
 | 
				
			||||||
extras_require = {':python_version<"3.4"': ['pathlib2'],
 | 
					extras_require = {':python_version<"3.4"': ['pathlib2'],
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,12 +11,14 @@ class Bash(Generic):
 | 
				
			|||||||
        return '''
 | 
					        return '''
 | 
				
			||||||
            function {name} () {{
 | 
					            function {name} () {{
 | 
				
			||||||
                TF_PREVIOUS=$(fc -ln -1);
 | 
					                TF_PREVIOUS=$(fc -ln -1);
 | 
				
			||||||
 | 
					                TF_PYTHONIOENCODING=$PYTHONIOENCODING;
 | 
				
			||||||
 | 
					                export TF_ALIAS={name};
 | 
				
			||||||
 | 
					                export TF_SHELL_ALIASES=$(alias);
 | 
				
			||||||
 | 
					                export PYTHONIOENCODING=utf-8;
 | 
				
			||||||
                TF_CMD=$(
 | 
					                TF_CMD=$(
 | 
				
			||||||
                    export TF_ALIAS={name}
 | 
					 | 
				
			||||||
                    export TF_SHELL_ALIASES=$(alias)
 | 
					 | 
				
			||||||
                    export PYTHONIOENCODING=utf-8
 | 
					 | 
				
			||||||
                    thefuck $TF_PREVIOUS {argument_placeholder} $@
 | 
					                    thefuck $TF_PREVIOUS {argument_placeholder} $@
 | 
				
			||||||
                ) && eval $TF_CMD;
 | 
					                ) && eval $TF_CMD;
 | 
				
			||||||
 | 
					                export PYTHONIOENCODING=$TF_PYTHONIOENCODING;
 | 
				
			||||||
                {alter_history}
 | 
					                {alter_history}
 | 
				
			||||||
            }}
 | 
					            }}
 | 
				
			||||||
        '''.format(
 | 
					        '''.format(
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user