Skip to content

Commit

Permalink
installer: fix installer not toggled when set
Browse files Browse the repository at this point in the history
Also noticed the completion was missing for the installer config option.
  • Loading branch information
terlar committed Dec 14, 2014
1 parent 0ff42d0 commit 04fd4a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion share/fry/completions/fry.fish
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ complete -f -c fry -n '__fish_fry_needs_command' -a '(__fish_fry)'
complete -f -c fry -n '__fish_fry_needs_command' -a '(fry ls)' -d 'Ruby'
complete -f -c fry -n '__fish_fry_using_command use' -a '(fry ls)' -d 'Ruby'
complete -f -c fry -n '__fish_fry_using_command env' -a '(fry ls)' -d 'Ruby'
complete -f -c fry -n '__fish_fry_using_command config' -a 'auto prepend path rubies' -d 'Config'
complete -f -c fry -n '__fish_fry_using_command config' -a 'auto prepend path rubies installer' -d 'Config'

if functions -q __fry_install_rubies
complete -f -c fry -n '__fish_fry_using_command install' -a '(__fry_install_rubies)' -d 'Ruby'
Expand Down
2 changes: 2 additions & 0 deletions share/fry/fry.fish
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ if not set -q fry_installer
set -U fry_installer $command
end
end
else
__fry_installer_toggle
end

# Auto-switch
Expand Down

0 comments on commit 04fd4a1

Please sign in to comment.