set permission 0755 to _j in install.sh

pull/139/head
muratayusuke 12 years ago committed by William Ting
parent 251dd47387
commit 7b4a54ccc1

@ -28,16 +28,14 @@ INSTALLATION
### REQUIREMENTS
- Python v2.7, 3.0, or 2.6 with argparse
- Bash v4.0 for tab completion
- Python v2.6
- Bash v4.0 for tab completion (or zsh)
If you are unable to update Python to a supported version, older
versions of autojump can be
[downloaded](https://github.com/joelthelion/autojump/downloads) and
installed manually.
- Python v2.6 is supported by [release
v19](https://github.com/downloads/joelthelion/autojump/autojump_v19.tar.gz).
- Python v2.4 is supported by [release
v12](https://github.com/downloads/joelthelion/autojump/autojump_v12.tar.gz).
@ -187,8 +185,7 @@ ADVANCED USAGE
Let's assume the following database:
30 /home/user/mail/inbox
10 /home/user/work/inbox
30 /home/user/mail/inbox 10 /home/user/work/inbox
`j in` would jump into /home/user/mail/inbox as the higher weighted
entry. However you can pass multiple arguments to autojump to prefer
@ -214,9 +211,20 @@ ADVANCED USAGE
KNOWN ISSUES
------------
- For bash users, autojump keeps track of directories as a pre-command
hook by modifying $PROMPT\_COMMAND. If you overwrite
$PROMPT\_COMMAND in \~/.bashrc you can cause problems. Don't do
this:
export PROMPT_COMMAND="history -a"
Do this:
export PROMPT\_COMMAND="${PROMPT\_COMMAND}; history -a"
- The jump function `j` does not support directories that begin with
`-`. If you want to jump a directory called `--music`, try using
`j music` instead of `j --music`.
`j music` instead of `j --music`.
- jumpapplet (bug \#59)

@ -123,8 +123,7 @@ Let\[aq]s assume the following database:
.IP
.nf
\f[C]
30\ \ \ /home/user/mail/inbox
10\ \ \ /home/user/work/inbox
30\ \ \ /home/user/mail/inbox\ 10\ \ \ /home/user/work/inbox
\f[]
.fi
.PP
@ -163,10 +162,27 @@ All negative key weights are purged automatically.
.RE
.SS KNOWN ISSUES
.IP \[bu] 2
For bash users, autojump keeps track of directories as a pre-command
hook by modifying $PROMPT_COMMAND.
If you overwrite $PROMPT_COMMAND in ~/.bashrc you can cause problems.
Don\[aq]t do this:
.RS 2
.IP
.nf
\f[C]
export\ PROMPT_COMMAND="history\ -a"
\f[]
.fi
.PP
Do this:
.PP
export PROMPT_COMMAND="${PROMPT_COMMAND}; history -a"
.RE
.IP \[bu] 2
The jump function \f[C]j\f[] does not support directories that begin
with \f[C]-\f[].
If you want to jump a directory called \f[C]--music\f[], try using
\f[C]j\ music\f[] instead of \f[C]j\ --music\f[].
\f[C]j\ music\f[] instead of \f[C]j\ \ \ --music\f[].
.IP \[bu] 2
jumpapplet (bug #59)
.RS 2

@ -148,7 +148,7 @@ if [ ! ${local} ]; then
success=
fpath=`/usr/bin/env zsh -c 'echo $fpath'`
for f in ${fpath}; do
cp -v ./bin/_j ${f} && success=true && break
install -v -m 0755 ./bin/_j ${f} && success=true && break
done
if [ ! ${success} ]; then
@ -173,7 +173,7 @@ else # local installation
if [ ${shell} == "zsh" ]; then
mkdir -p ${prefix}/functions/
cp ./bin/_j ${prefix}/functions/
install -v -m 0755 ./bin/_j ${prefix}/functions/
fi
add_msg "local" ${shell}

Loading…
Cancel
Save