mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-31 07:04:12 +00:00 
			
		
		
		
	| @@ -49,7 +49,7 @@ class Generic(object): | |||||||
|                 history.write(self._get_history_line(command_script)) |                 history.write(self._get_history_line(command_script)) | ||||||
|  |  | ||||||
|     def and_(self, *commands): |     def and_(self, *commands): | ||||||
|         return ' && '.join(commands) |         return u' && '.join(commands) | ||||||
|  |  | ||||||
|  |  | ||||||
| class Bash(Generic): | class Bash(Generic): | ||||||
| @@ -105,7 +105,7 @@ class Fish(Generic): | |||||||
|         aliases = self.get_aliases() |         aliases = self.get_aliases() | ||||||
|         binary = command_script.split(' ')[0] |         binary = command_script.split(' ')[0] | ||||||
|         if binary in aliases: |         if binary in aliases: | ||||||
|             return 'fish -ic "{}"'.format(command_script.replace('"', r'\"')).encode('utf8') |             return u'fish -ic "{}"'.format(command_script.replace('"', r'\"')) | ||||||
|         else: |         else: | ||||||
|             return command_script |             return command_script | ||||||
|  |  | ||||||
| @@ -120,7 +120,7 @@ class Fish(Generic): | |||||||
|         return u'- cmd: {}\n   when: {}\n'.format(command_script, int(time())) |         return u'- cmd: {}\n   when: {}\n'.format(command_script, int(time())) | ||||||
|  |  | ||||||
|     def and_(self, *commands): |     def and_(self, *commands): | ||||||
|         return '; and '.join(commands) |         return u'; and '.join(commands) | ||||||
|  |  | ||||||
|  |  | ||||||
| class Zsh(Generic): | class Zsh(Generic): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user