1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-31 02:01:13 +00:00

#176 Fix fails with wrong aliases

This commit is contained in:
nvbn 2015-05-09 18:53:36 +02:00
parent f082ba829f
commit 690729d5a1

View File

@ -60,7 +60,7 @@ class Bash(Generic):
return dict(
self._parse_alias(alias)
for alias in proc.stdout.read().decode('utf-8').split('\n')
if alias)
if alias and '=' in alias)
def _get_history_file_name(self):
return os.environ.get("HISTFILE",
@ -82,7 +82,7 @@ class Zsh(Generic):
return dict(
self._parse_alias(alias)
for alias in proc.stdout.read().decode('utf-8').split('\n')
if alias)
if alias and '=' in alias)
def _get_history_file_name(self):
return os.environ.get("HISTFILE",