Add tests for tcsh, fix tcsh alias

This commit is contained in:
nvbn
2015-07-24 23:50:22 +03:00
parent 41350d13a8
commit 14e4158c7a
3 changed files with 52 additions and 3 deletions
+1 -1
View File
@@ -194,7 +194,7 @@ class Tcsh(Generic):
def app_alias(self, fuck):
return ("alias {0} 'setenv TF_ALIAS {0} && "
"set fucked_cmd=`history -h 2 | head -n 1` && "
"eval `thefuck ${fucked_cmd}`'").format(fuck)
"eval `thefuck ${{fucked_cmd}}`'").format(fuck)
def _parse_alias(self, alias):
name, value = alias.split("\t", 1)