mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
better fix for custom installation directories
This commit is contained in:
parent
ad09ee27d4
commit
c763b2afad
@ -34,7 +34,7 @@ import re
|
|||||||
import shutil
|
import shutil
|
||||||
from tempfile import NamedTemporaryFile
|
from tempfile import NamedTemporaryFile
|
||||||
|
|
||||||
VERSION = 'release-v21.5.6'
|
VERSION = 'release-v21.5.7'
|
||||||
MAX_KEYWEIGHT = 1000
|
MAX_KEYWEIGHT = 1000
|
||||||
MAX_STORED_PATHS = 1000
|
MAX_STORED_PATHS = 1000
|
||||||
COMPLETION_SEPARATOR = '__'
|
COMPLETION_SEPARATOR = '__'
|
||||||
|
@ -15,7 +15,7 @@ elif [ -s /etc/profile.d/autojump.${shell} ]; then
|
|||||||
source /etc/profile.d/autojump.${shell}
|
source /etc/profile.d/autojump.${shell}
|
||||||
|
|
||||||
# check custom install locations (modified by Homebrew or using --destdir option)
|
# check custom install locations (modified by Homebrew or using --destdir option)
|
||||||
elif [ -s /destdir_${RANDOM}_install/autojump.${shell} ]; then
|
#custom# elif [ -s destdir_install/autojump.${shell} ]; then
|
||||||
source /destdir_${RANDOM}_install/autojump.${shell}
|
#custom# source destdir_install/autojump.${shell}
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
@ -222,7 +222,8 @@ install -v -m 0755 ./bin/_j ${destdir}${zshsharedir} || exit 1
|
|||||||
|
|
||||||
# MODIFY AUTOJUMP.SH FOR CUSTOM INSTALLS
|
# MODIFY AUTOJUMP.SH FOR CUSTOM INSTALLS
|
||||||
if [[ -z ${local} ]] && [[ -z ${global} ]]; then
|
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
|
fi
|
||||||
|
|
||||||
# DISPLAY ADD MESSAGE
|
# DISPLAY ADD MESSAGE
|
||||||
|
Loading…
Reference in New Issue
Block a user