m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-20 09:33:42 -05:00

Updated examples (markdown)

Junegunn Choi
2014-08-02 01:32:52 -07:00
parent 9a118cc3ce
commit 5a7a99aae4

@@ -146,6 +146,7 @@ Integration with [z](https://github.com/rupa/z), like normal z when used with
arguments but displays an fzf prompt when used without. arguments but displays an fzf prompt when used without.
```sh ```sh
unalias z
z() { z() {
if [[ -z "$*" ]]; then if [[ -z "$*" ]]; then
cd "$(_z -l 2>&1 | sed -n 's/^[ 0-9.,]*//p' | fzf)" cd "$(_z -l 2>&1 | sed -n 's/^[ 0-9.,]*//p' | fzf)"
@@ -159,6 +160,7 @@ Here is another version that also supports relaunching z with the arguments
for the previous command as the default input by using zz for the previous command as the default input by using zz
```sh ```sh
unalias z
z() { z() {
if [[ -z "$*" ]]; then if [[ -z "$*" ]]; then
cd "$(_z -l 2>&1 | sed -n 's/^[ 0-9.,]*//p' | fzf)" cd "$(_z -l 2>&1 | sed -n 's/^[ 0-9.,]*//p' | fzf)"