Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewShellRC = `
# vm_envs start
if [ -z "${VM_DISABLE}" ]; then
. ~/.vmr/vmr.sh
fi
# vm_envs end`
View Source
var NewShellRCFish = `# vm_envs start
if not test "${VM_DISABLE}"
. ~/.vmr/vmr.fish
end
# vm_envs end`
View Source
var OldShellRC string = `# vm_envs start
if [ -z "${VM_DISABLE}" ]; then
. ~/.vm/vmr.sh
fi
# vm_envs end`
View Source
var UnixRemoveScript string = `#!/bin/sh
cd ~
vmr Uins
rm -rf %s`
View Source
var UnixScript string = `#!/bin/sh
cd ~
curl --proto '=https' --tlsv1.2 -sSf https://scripts.vmr.us.kg | sh`
View Source
var WinMingwRemoveScript string = `#!/bin/sh
powershell %s`
View Source
var WinMingwScript string = `#!/bin/sh
cd ~
powershell %s`
View Source
var WinRemoveScript string = `cd %HOMEPATH%
vmr Uins
rmdir /s /q `
View Source
var WinScript string = `cd %HOMEPATH%
powershell -c "irm https://scripts.vmr.us.kg/windows | iex"`
Functions ¶
func RemoveCurrentVersion ¶
func RemoveCurrentVersion()
Preparation for removing the current version of VMR.
func SetUninstallScript ¶
func SetUninstallScript()
func SetUpdateScript ¶
func SetUpdateScript()
Types ¶
Click to show internal directories.
Click to hide internal directories.