mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
Added tips to the Additional Configuration section in README
This commit is contained in:
parent
4ce2cb5929
commit
c16b305e0d
17
README.md
17
README.md
@ -86,7 +86,7 @@ Grab a copy of autojump:
|
|||||||
Run the installation script:
|
Run the installation script:
|
||||||
|
|
||||||
cd autojump
|
cd autojump
|
||||||
./install.sh [ --local ]
|
./install.sh [ --local ] [ --zsh ]
|
||||||
|
|
||||||
and follow on screen instructions.
|
and follow on screen instructions.
|
||||||
|
|
||||||
@ -193,6 +193,21 @@ 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
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
@ -140,6 +140,28 @@ export\ AUTOJUMP_AUTOCOMPLETE_CMDS=\[aq]cp\ vim\[aq]
|
|||||||
.PP
|
.PP
|
||||||
Changes require reloading autojump to take into effect.
|
Changes require reloading autojump to take into effect.
|
||||||
.RE
|
.RE
|
||||||
|
.IP \[bu] 2
|
||||||
|
Use a File Manager to Open Jumped-to Directories
|
||||||
|
.RS 2
|
||||||
|
.PP
|
||||||
|
You can modify your ~/.bashrc or ~/.zsh to make autojump open a
|
||||||
|
directory for you.
|
||||||
|
Add the following lines in your ~/.bashrc or ~/.zshrc:
|
||||||
|
.IP
|
||||||
|
.nf
|
||||||
|
\f[C]
|
||||||
|
function\ jo\ {\ xdg-open\ $(autojump\ $\@);\ }
|
||||||
|
complete\ -F\ _autojump\ jo
|
||||||
|
\f[]
|
||||||
|
.fi
|
||||||
|
.PP
|
||||||
|
If you\[aq]re using Mac OS X, you can replace \f[C]xdg-open\f[] with
|
||||||
|
\f[C]open\f[].
|
||||||
|
.PP
|
||||||
|
After executing \f[C]source\ ~/.bashrc\f[] or \f[C]source\ ~/.zshrc\f[],
|
||||||
|
you can try \f[C]jo\ foo\f[], which behaves like \f[C]j\ foo\f[] except
|
||||||
|
that it opens the \f[C]foo\f[] directory with a file manager.
|
||||||
|
.RE
|
||||||
.SS ADVANCED USAGE
|
.SS ADVANCED USAGE
|
||||||
.IP \[bu] 2
|
.IP \[bu] 2
|
||||||
Using Multiple Arguments
|
Using Multiple Arguments
|
||||||
|
11
docs/body.md
11
docs/body.md
@ -61,6 +61,17 @@ Options must be passed to 'autojump' and not the 'j' wrapper function.
|
|||||||
|
|
||||||
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
|
||||||
|
|
||||||
- Using Multiple Arguments
|
- Using Multiple Arguments
|
||||||
|
Loading…
Reference in New Issue
Block a user