mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
Merge 10027b98ab
into ff75f542ae
This commit is contained in:
commit
f3400aad1c
@ -1,8 +1,14 @@
|
|||||||
set -gx AUTOJUMP_SOURCED 1
|
set -gx AUTOJUMP_SOURCED 1
|
||||||
|
|
||||||
# set user installation path
|
# Set user installation path
|
||||||
if test -d ~/.autojump
|
begin
|
||||||
set -x PATH ~/.autojump/bin $PATH
|
set --local AUTOJUMP_BIN_PATH ~/.autojump/bin
|
||||||
|
if test -d $AUTOJUMP_BIN_PATH
|
||||||
|
# Add to PATH only if autojump not sourced yet
|
||||||
|
if not contains $AUTOJUMP_BIN_PATH $PATH
|
||||||
|
set -x PATH $AUTOJUMP_BIN_PATH $PATH
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Set ostype, if not set
|
# Set ostype, if not set
|
||||||
|
Loading…
Reference in New Issue
Block a user