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