1
0
mirror of https://github.com/wting/autojump synced 2024-09-28 22:10:45 +00:00
This commit is contained in:
Ashwin Nanjappa 2023-09-11 00:21:56 +08:00 committed by GitHub
commit f3400aad1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,14 @@
set -gx AUTOJUMP_SOURCED 1
# set user installation path
if test -d ~/.autojump
set -x PATH ~/.autojump/bin $PATH
# Set user installation path
begin
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
# Set ostype, if not set