From ce2ea9d6503af9974f9c19aeb927830ee537e872 Mon Sep 17 00:00:00 2001 From: Vladimir Iakovlev Date: Mon, 20 Jul 2015 21:20:51 +0300 Subject: [PATCH] Updated Shell aliases (markdown) --- Shell-aliases.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shell-aliases.md b/Shell-aliases.md index 389292a..2f97411 100644 --- a/Shell-aliases.md +++ b/Shell-aliases.md @@ -2,14 +2,14 @@ Add this alias to `.bashrc` or `.bash_profile` (for OSX): ```bash -alias fuck='eval $(thefuck $(fc -ln -1)); history -r' +eval "$(thefuck-alias)" ``` # ZSH Add this alias to `.zshrc`: ```bash -alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R' +eval "$(thefuck-alias)" ``` # Fish