mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 16:45:38 -05:00
Updated Examples (markdown)
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user