1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-09-21 04:32:37 +01:00

#571: Don't put empty string in history in zsh

This commit is contained in:
Vladimir Iakovlev
2016-10-31 18:52:48 +01:00
parent ddd8788353
commit 6f0d1e287d

View File

@@ -15,7 +15,7 @@ class Zsh(Generic):
" eval $TF_CMD".format(alias_name)
if settings.alter_history:
return alias + " ; print -s $TF_CMD'"
return alias + " ; test -n \"$TF_CMD\" && print -s $TF_CMD'"
else:
return alias + "'"