mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
update docs about jo(), jc(), jco()
This commit is contained in:
parent
d57e7b779c
commit
ac2dc9f1d2
32
README.md
32
README.md
@ -193,24 +193,28 @@ ADDITIONAL CONFIGURATION
|
|||||||
|
|
||||||
Changes require reloading autojump to take into effect.
|
Changes require reloading autojump to take into effect.
|
||||||
|
|
||||||
- Use a File Manager to Open Jumped-to Directories
|
|
||||||
|
|
||||||
You can modify your \~/.bashrc or \~/.zsh to make autojump open a
|
|
||||||
directory for you. Add the following lines in your \~/.bashrc or
|
|
||||||
\~/.zshrc:
|
|
||||||
|
|
||||||
function jo { xdg-open $(autojump $@); }
|
|
||||||
complete -F _autojump jo
|
|
||||||
|
|
||||||
If you're using Mac OS X, you can replace `xdg-open` with `open`.
|
|
||||||
|
|
||||||
After executing `source ~/.bashrc` or `source ~/.zshrc`, you can try
|
|
||||||
`jo foo`, which behaves like `j foo` except that it opens the `foo`
|
|
||||||
directory with a file manager.
|
|
||||||
|
|
||||||
ADVANCED USAGE
|
ADVANCED USAGE
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
- Open File Manager To Directories (instead of jumping)
|
||||||
|
|
||||||
|
Instead of jumping to a directory, you can open a file explorer window (Mac
|
||||||
|
Finder, Windows Explorer, GNOME Nautilus, etc) to the directory instead.
|
||||||
|
|
||||||
|
jo music
|
||||||
|
|
||||||
|
- Jump to a Child Directory.
|
||||||
|
|
||||||
|
Sometimes it's convenient to jump to a child directory (sub-directory of
|
||||||
|
current directory) rather than typing out the full name.
|
||||||
|
|
||||||
|
jc images
|
||||||
|
|
||||||
|
Opening a file manager to a child directory is also supported.
|
||||||
|
|
||||||
|
jco images
|
||||||
|
|
||||||
- Using Multiple Arguments
|
- Using Multiple Arguments
|
||||||
|
|
||||||
Let's assume the following database:
|
Let's assume the following database:
|
||||||
|
Loading…
Reference in New Issue
Block a user