mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 22:54:14 +00:00 
			
		
		
		
	refact(shells): use os.path.basename to get the name of the shell
Signed-off-by: Pablo Santiago Blum de Aguiar <scorphus@gmail.com>
This commit is contained in:
		| @@ -136,7 +136,7 @@ def _get_shell(): | |||||||
|         shell = Process(os.getpid()).parent().cmdline()[0] |         shell = Process(os.getpid()).parent().cmdline()[0] | ||||||
|     except TypeError: |     except TypeError: | ||||||
|         shell = Process(os.getpid()).parent.cmdline[0] |         shell = Process(os.getpid()).parent.cmdline[0] | ||||||
|     return shells[shell] |     return shells[os.path.basename(shell)] | ||||||
|  |  | ||||||
|  |  | ||||||
| def from_shell(command): | def from_shell(command): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user