diff --git a/thefuck/shells.py b/thefuck/shells.py index d5fac6e3..6c7a7baa 100644 --- a/thefuck/shells.py +++ b/thefuck/shells.py @@ -224,6 +224,7 @@ shells = defaultdict(lambda: Generic(), { 'tcsh': Tcsh()}) +@memoize def _get_shell(): try: shell = Process(os.getpid()).parent().name()