Skip to content

Commit

Permalink
better fix for custom installation directories
Browse files Browse the repository at this point in the history
  • Loading branch information
wting committed Apr 25, 2013
1 parent ad09ee2 commit c763b2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/autojump
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import re
import shutil
from tempfile import NamedTemporaryFile

VERSION = 'release-v21.5.6'
VERSION = 'release-v21.5.7'
MAX_KEYWEIGHT = 1000
MAX_STORED_PATHS = 1000
COMPLETION_SEPARATOR = '__'
Expand Down
4 changes: 2 additions & 2 deletions bin/autojump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ elif [ -s /etc/profile.d/autojump.${shell} ]; then
source /etc/profile.d/autojump.${shell}

# check custom install locations (modified by Homebrew or using --destdir option)
elif [ -s /destdir_${RANDOM}_install/autojump.${shell} ]; then
source /destdir_${RANDOM}_install/autojump.${shell}
#custom# elif [ -s destdir_install/autojump.${shell} ]; then
#custom# source destdir_install/autojump.${shell}

fi
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ install -v -m 0755 ./bin/_j ${destdir}${zshsharedir} || exit 1

# MODIFY AUTOJUMP.SH FOR CUSTOM INSTALLS
if [[ -z ${local} ]] && [[ -z ${global} ]]; then
sed -i "s:/destdir_.*_install:${destdir}etc/profile.d:g" ${destdir}etc/profile.d/autojump.sh
sed -i "s:#custom#\t::g" ${destdir}etc/profile.d/autojump.sh
sed -i "s:destdir_install\t:${destdir}etc/profile.d:g" ${destdir}etc/profile.d/autojump.sh
fi

# DISPLAY ADD MESSAGE
Expand Down

0 comments on commit c763b2a

Please sign in to comment.