class ChefCLI::Command::ShellInit
def fish_shell_export(var, val)
def fish_shell_export(var, val) # Fish's syntax for setting PATH is special. Path elements are # divided by spaces (instead of colons). We also send STDERR to # /dev/null to avoid Fish's helpful warnings about nonexistent # PATH elements. if var == "PATH" emit_shell_cmd(%Q{set -gx #{var} "#{val.split(":").join('" "')}" 2>/dev/null;}) else emit_shell_cmd(%Q{set -gx #{var} "#{val}";}) end end