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.
```sh ```sh
echo 'set PATH $HOME/.jenv/bin $PATH' >> ~/.config/fish/config.fish 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 cp ~/.jenv/fish/jenv.fish ~/.config/fish/functions/jenv.fish
``` ```

4
libexec/jenv-init

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

Loading…
Cancel
Save