Browse Source

Merge pull request #52 from roryokane/patch-2

fix: In jenv.fish, add flags to `set`s for safety
pull/462/head
Barnesly 2 weeks ago committed by GitHub
parent
commit
e9a081473e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      fish/jenv.fish

8
fish/jenv.fish

@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
set PATH $HOME/.jenv/shims $PATH
set -gx PATH $HOME/.jenv/shims $PATH
command jenv rehash 2>/dev/null
function jenv
set cmd $argv[1]
set arg ""
set -l cmd $argv[1]
set -l arg ""
if test (count $argv) -gt 1
# Great... fish first array index is ... 1 !
set arg $argv[2..-1]
@ -10,7 +10,7 @@ function jenv @@ -10,7 +10,7 @@ function jenv
switch "$cmd"
case enable-plugin rehash shell shell-options
set script (jenv "sh-$cmd" "$arg")
set -l script (jenv "sh-$cmd" "$arg")
eval $script
case '*'
command jenv $cmd $arg

Loading…
Cancel
Save