mirror of
https://github.com/ethauvin/sdkman-for-fish.git
synced 2025-04-25 05:17:11 -07:00
parent
7e9d8a7031
commit
ac99d1464c
6 changed files with 22 additions and 10 deletions
|
@ -22,8 +22,8 @@ if begin not test -f "$__fish_sdkman_noexport_init";
|
|||
or env test "$__fish_sdkman_init" -nt "$__fish_sdkman_noexport_init"
|
||||
end
|
||||
mkdir -p (dirname $__fish_sdkman_noexport_init)
|
||||
sed -e 's/^\(\s*\).*\(export\|to_path\).*$/\1:/g' "$__fish_sdkman_init" \
|
||||
> $__fish_sdkman_noexport_init
|
||||
sed -E -e 's/^(\s*).*(export|to_path).*$/\1:/g' "$__fish_sdkman_init" \
|
||||
> "$__fish_sdkman_noexport_init"
|
||||
end
|
||||
|
||||
# Runs the given command in bash, capturing some side effects
|
||||
|
@ -66,7 +66,7 @@ function __fish_sdkman_run_in_bash
|
|||
if test -n value
|
||||
set -gx $var $value
|
||||
# Note: This makes SDKMAN_OFFLINE_MODE an environment variable.
|
||||
# That gives it the behavariour we _want_!
|
||||
# That gives it the behaviour we _want_!
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue