From 690729d5a15ebb105ca9fadb383549e3c8d0356f Mon Sep 17 00:00:00 2001 From: nvbn Date: Sat, 9 May 2015 18:53:36 +0200 Subject: [PATCH] #176 Fix fails with wrong aliases --- thefuck/shells.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thefuck/shells.py b/thefuck/shells.py index 1d128cda..e1203f45 100644 --- a/thefuck/shells.py +++ b/thefuck/shells.py @@ -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",