1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-14 06:38:32 +00:00

Merge 0d2014caa787c5826a06e910e500a4d36ea5630e into 1a595f1ba23843823037479d0caede926b0bd752

This commit is contained in:
BurdenBear 2021-04-20 10:01:56 +05:30 committed by GitHub
commit 500854e44d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@ import re
import shelve
import sys
import six
import sys
from decorator import decorator
from difflib import get_close_matches as difflib_get_close_matches
from functools import wraps
@ -125,6 +126,10 @@ def get_all_executables():
aliases = [alias.decode('utf8') if six.PY2 else alias
for alias in shell.get_aliases() if alias != tf_alias]
win32 = sys.platform.startswith('win')
if win32:
bins += [exe[:-4] for exe in bins if exe.endswith(".exe")]
return bins + aliases