Skip to content

Commit

Permalink
style: generic cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
terlar committed Nov 13, 2015
1 parent 559e16e commit d63ed4c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion share/fry/functions/fry-config.fish
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function fry-config --description 'Configuration for fry'
if test (count $argv) -eq 0
set argv 'help'
set argv help
end

switch $argv[1]
Expand Down
4 changes: 2 additions & 2 deletions share/fry/functions/fry-current.fish
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function fry-current --description 'Show the current ruby'
end
end

set -l available_ruby_paths (printf '%s\n' $fry_rubies/(fry-ls)/bin)
set -l available_ruby_paths $fry_rubies/(fry-ls)/bin

for p in $fish_user_paths
if not contains $p $available_ruby_paths
Expand All @@ -36,6 +36,6 @@ function fry-current --description 'Show the current ruby'
if test $show_path -eq 1
dirname (type -p ruby)
else
echo 'system'
echo system
end
end
2 changes: 1 addition & 1 deletion share/fry/functions/fry-find.fish
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function fry-find --description 'Find ruby by name'
return
end

for i in (fry-ls | sort -r -n)
for i in (fry-ls | sort -rn)
switch $i
case "$name*" "$rubyless_name*" "ruby-$name*"
echo $i
Expand Down
4 changes: 2 additions & 2 deletions share/fry/functions/fry-use.fish
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function fry-use --description 'Use the ruby given by <ruby>'
set -l name $argv[1]
set -l ruby $name

if test $name != 'system'
if test "$name" != system
set ruby (fry-find $name)
end

Expand All @@ -29,7 +29,7 @@ function fry-use --description 'Use the ruby given by <ruby>'

__fry_reset

if test $name = 'system'
if test "$name" = system
echo 'Switched to system ruby'
else
set -l ruby_paths
Expand Down

0 comments on commit d63ed4c

Please sign in to comment.