mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-25 14:42:33 +01:00
Decrease count of psutils calls
This commit is contained in:
@@ -224,6 +224,7 @@ shells = defaultdict(lambda: Generic(), {
|
||||
'tcsh': Tcsh()})
|
||||
|
||||
|
||||
@memoize
|
||||
def _get_shell():
|
||||
try:
|
||||
shell = Process(os.getpid()).parent().name()
|
||||
|
Reference in New Issue
Block a user