|
12 | 12 | -- * compatible with lua 5.1, 5.2 and 5.3+ |
13 | 13 | -- |
14 | 14 | -- USE: |
15 | | --- * z foo # cd to most frecent dir matching foo |
16 | | --- * z foo bar # cd to most frecent dir matching foo and bar |
17 | | --- * z -r foo # cd to highest ranked dir matching foo |
18 | | --- * z -t foo # cd to most recently accessed dir matching foo |
19 | | --- * z -l foo # list matches instead of cd |
20 | | --- * z -c foo # restrict matches to subdirs of $PWD |
21 | | --- * z -e foo # echo the best match, don't cd |
22 | | --- * z -x path # remove path from history |
23 | | --- * z -i foo # cd with interactive selection |
24 | | --- * z -I foo # cd with interactive selection using fzf |
25 | | --- * z -b foo # cd to the parent directory starting with foo |
| 15 | +-- * z foo # cd to most frecent dir matching foo |
| 16 | +-- * z foo bar # cd to most frecent dir matching foo and bar |
| 17 | +-- * z -r foo # cd to highest ranked dir matching foo |
| 18 | +-- * z -t foo # cd to most recently accessed dir matching foo |
| 19 | +-- * z -l foo # list matches instead of cd |
| 20 | +-- * z -c foo # restrict matches to subdirs of $PWD |
| 21 | +-- * z -e foo # echo the best match, don't cd |
| 22 | +-- * z -x path # remove path from history |
| 23 | +-- * z -i foo # cd with interactive selection |
| 24 | +-- * z -I foo # cd with interactive selection using fzf |
| 25 | +-- * z -b foo # cd to the parent directory starting with foo |
| 26 | +-- * z -b foo bar # replace foo with bar in cwd and cd there |
26 | 27 | -- |
27 | 28 | -- Bash Install: |
28 | 29 | -- * put something like this in your .bashrc: |
|
46 | 47 | -- |
47 | 48 | -- Fish Shell Install: |
48 | 49 | -- * put something like this in your config file: |
49 | | --- source (lua /path/to/z.lua --init fish | psub) |
| 50 | +-- lua /path/to/z.lua --init fish | source |
50 | 51 | -- |
51 | 52 | -- Power Shell Install: |
52 | 53 | -- * put something like this in your config file: |
@@ -2714,17 +2715,18 @@ end |
2714 | 2715 | ----------------------------------------------------------------------- |
2715 | 2716 | function z_help() |
2716 | 2717 | local cmd = Z_CMD .. ' ' |
2717 | | - print(cmd .. 'foo # cd to most frecent dir matching foo') |
2718 | | - print(cmd .. 'foo bar # cd to most frecent dir matching foo and bar') |
2719 | | - print(cmd .. '-r foo # cd to highest ranked dir matching foo') |
2720 | | - print(cmd .. '-t foo # cd to most recently accessed dir matching foo') |
2721 | | - print(cmd .. '-l foo # list matches instead of cd') |
2722 | | - print(cmd .. '-c foo # restrict matches to subdirs of $PWD') |
2723 | | - print(cmd .. '-e foo # echo the best match, don\'t cd') |
2724 | | - print(cmd .. '-x path # remove path from history') |
2725 | | - print(cmd .. '-i foo # cd with interactive selection') |
2726 | | - print(cmd .. '-I foo # cd with interactive selection using fzf') |
2727 | | - print(cmd .. '-b foo # cd to the parent directory starting with foo') |
| 2718 | + print(cmd .. 'foo # cd to most frecent dir matching foo') |
| 2719 | + print(cmd .. 'foo bar # cd to most frecent dir matching foo and bar') |
| 2720 | + print(cmd .. '-r foo # cd to highest ranked dir matching foo') |
| 2721 | + print(cmd .. '-t foo # cd to most recently accessed dir matching foo') |
| 2722 | + print(cmd .. '-l foo # list matches instead of cd') |
| 2723 | + print(cmd .. '-c foo # restrict matches to subdirs of $PWD') |
| 2724 | + print(cmd .. '-e foo # echo the best match, don\'t cd') |
| 2725 | + print(cmd .. '-x path # remove path from history') |
| 2726 | + print(cmd .. '-i foo # cd with interactive selection') |
| 2727 | + print(cmd .. '-I foo # cd with interactive selection using fzf') |
| 2728 | + print(cmd .. '-b foo # cd to the parent directory starting with foo') |
| 2729 | + print(cmd .. '-b foo bar # replace foo with bar in cwd and cd there') |
2728 | 2730 | end |
2729 | 2731 |
|
2730 | 2732 |
|
|
0 commit comments