HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/scripts/extras/rvm.fish
#!/usr/bin/env fish

function load_env_file
  sed -e "s/export\(.*\);\(.*\)=/set -x \1 /" -e "s/export\(.*\)=/set -x \1 /" -e 's/unset/set -e /' -e "/ PATH / s/[\"':]/ /g" -e 's/$/; /' < $argv | source
end

load_env_file ~/.rvm/environments/default

function rvm
  switch $argv[1]
  case 'use'
    load_env_file (~/.rvm/bin/rvm $argv do rvm env --path | tail -n 1)
  case '*'
    ~/.rvm/bin/rvm $argv
  end
end