#441: Move function for getting current alias to utils

This commit is contained in:
nvbn
2016-01-29 12:22:31 +03:00
parent 0b2bda9e85
commit a2ec5aa3ff
6 changed files with 14 additions and 15 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ from . import logs, types, shells
from .conf import settings
from .corrector import get_corrected_commands
from .exceptions import EmptyCommand
from .utils import get_installation_info
from .utils import get_installation_info, get_alias
from .ui import select_command
@@ -42,7 +42,7 @@ def print_alias(entry_point=True):
else:
position = 2
alias = shells.thefuck_alias()
alias = get_alias()
if len(sys.argv) > position:
alias = sys.argv[position]
print(shells.app_alias(alias))