From 8d256390a1215540bcba0186796e15265168a62d Mon Sep 17 00:00:00 2001 From: Pablo Santiago Blum de Aguiar Date: Fri, 8 May 2015 20:09:50 -0300 Subject: [PATCH] refact(shells): use os.path.basename to get the name of the shell Signed-off-by: Pablo Santiago Blum de Aguiar --- thefuck/shells.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thefuck/shells.py b/thefuck/shells.py index 87715d6b..eeb20dca 100644 --- a/thefuck/shells.py +++ b/thefuck/shells.py @@ -136,7 +136,7 @@ def _get_shell(): shell = Process(os.getpid()).parent().cmdline()[0] except TypeError: shell = Process(os.getpid()).parent.cmdline[0] - return shells[shell] + return shells[os.path.basename(shell)] def from_shell(command):