From a8037343c5e35888ada803240e4e1f4459ae2273 Mon Sep 17 00:00:00 2001 From: Vladimir Iakovlev Date: Mon, 4 May 2015 05:01:43 +0200 Subject: [PATCH] Updated Shell aliases (markdown) --- Shell-aliases.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Shell-aliases.md b/Shell-aliases.md index d9d344e..b96f538 100644 --- a/Shell-aliases.md +++ b/Shell-aliases.md @@ -1,8 +1,15 @@ -# Bash and Zsh +# Bash -Add this alias to `.bashrc` or `.zshrc` or `.bash_profile` (for OSX): +Add this alias to `.bashrc` or `.bash_profile` (for OSX): ```bash -alias fuck='eval $(thefuck $(fc -ln -1))' +alias fuck='eval $(thefuck $(fc -ln -1)); history -r' +``` + +# ZSH + +Add this alias to `.zshrc`: +```bash +alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R' ``` # Fish