mirror of
https://github.com/wting/autojump
synced 2026-03-02 03:49:26 +00:00
Installs to /usr/local/share instead of /etc/profile.d.
Fixes #257, #267.
This commit is contained in:
@@ -59,7 +59,7 @@ from autojump_utils import sanitize
|
||||
from autojump_utils import take
|
||||
from autojump_utils import unico
|
||||
|
||||
VERSION = '22.0.2-beta'
|
||||
VERSION = '22.0.3-beta'
|
||||
FUZZY_MATCH_THRESHOLD = 0.6
|
||||
TAB_ENTRIES_COUNT = 9
|
||||
TAB_SEPARATOR = '__'
|
||||
|
||||
@@ -17,11 +17,11 @@ if [ "${shell}" = "sh" ]; then
|
||||
return 0
|
||||
|
||||
# check local install
|
||||
elif [ -s ~/.autojump/etc/profile.d/autojump.${shell} ]; then
|
||||
source ~/.autojump/etc/profile.d/autojump.${shell}
|
||||
elif [ -s ~/.autojump/share/autojump/autojump.${shell} ]; then
|
||||
source ~/.autojump/share/autojump/autojump.${shell}
|
||||
|
||||
# check global install
|
||||
elif [ -s /etc/profile.d/autojump.${shell} ]; then
|
||||
source /etc/profile.d/autojump.${shell}
|
||||
elif [ -s /usr/local/share/autojump/autojump.${shell} ]; then
|
||||
source /usr/local/share/autojump/autojump.${shell}
|
||||
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user