mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-31 18:21:10 +00:00
Decrease count of psutils calls
This commit is contained in:
parent
5d1dd70652
commit
4fc18cb4e7
@ -224,6 +224,7 @@ shells = defaultdict(lambda: Generic(), {
|
|||||||
'tcsh': Tcsh()})
|
'tcsh': Tcsh()})
|
||||||
|
|
||||||
|
|
||||||
|
@memoize
|
||||||
def _get_shell():
|
def _get_shell():
|
||||||
try:
|
try:
|
||||||
shell = Process(os.getpid()).parent().name()
|
shell = Process(os.getpid()).parent().name()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user