Browse Source

Replace source+psub

pull/351/head
0az 4 years ago committed by Marquis Wang
parent
commit
35edbf6030
  1. 2
      README.md
  2. 4
      libexec/jenv-init

2
README.md

@ -88,7 +88,7 @@ Continue to the next section to install java. @@ -88,7 +88,7 @@ Continue to the next section to install java.
```sh
echo 'set PATH $HOME/.jenv/bin $PATH' >> ~/.config/fish/config.fish
echo 'status --is-interactive; and source (jenv init -|psub)' >> ~/.config/fish/config.fish
echo 'status --is-interactive; and jenv init - | source' >> ~/.config/fish/config.fish
cp ~/.jenv/fish/jenv.fish ~/.config/fish/functions/jenv.fish
```

4
libexec/jenv-init

@ -73,7 +73,7 @@ if [ -z "$print" ]; then @@ -73,7 +73,7 @@ if [ -z "$print" ]; then
echo
case "$shell" in
fish )
echo 'status --is-interactive; and source (jenv init -|psub)'
echo 'status --is-interactive; and jenv init - | source'
;;
* )
echo 'eval "$(jenv init -)"'
@ -130,7 +130,7 @@ function jenv @@ -130,7 +130,7 @@ function jenv
switch "\$command"
case ${commands[*]}
source (jenv "sh-\$command" \$argv|psub)
jenv "sh-\$command" \$argv | source
case '*'
command jenv "\$command" \$argv
end

Loading…
Cancel
Save