From 30cc2f41f2357cb9577d803dee3242d0335e6679 Mon Sep 17 00:00:00 2001 From: Nadim Khemir Date: Tue, 4 Oct 2016 13:32:05 +0200 Subject: [PATCH] Updated Examples (markdown) --- Examples.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples.md b/Examples.md index 1fb3b16..15b160d 100644 --- a/Examples.md +++ b/Examples.md @@ -181,14 +181,14 @@ These have been tested in bash. ```sh # fh - repeat history -runcmd (){ perl -e 'ioctl STDOUT, 0x5412, $_ for split //, <>' } +runcmd (){ perl -e 'ioctl STDOUT, 0x5412, $_ for split //, <>' ; } fh() { ([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf +s --tac | sed -re 's/^\s*[0-9]+\s*//' | runcmd } # fhe - repeat history edit -writecmd (){ perl -e 'ioctl STDOUT, 0x5412, $_ for split //, do{ chomp($_ = <>); $_ }' } +writecmd (){ perl -e 'ioctl STDOUT, 0x5412, $_ for split //, do{ chomp($_ = <>); $_ }' ; } fhe() { ([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf +s --tac | sed -re 's/^\s*[0-9]+\s*//' | writecmd